Functions

uint16_t halBulbPwmDriverFrequencyCallback (void)
Configures the frequency of the PWM driver. Called by the bulb-pwm driver upon initialization to determine the frequency at which the PWM driver should be driven. It should return either the frequency, in Hz, or USE_DEFAULT_FREQUENCY to indicate that the plugin should use the default value. The default value is 1000 Hz, but can be overridden by a macro in the board header.
void halBulbPwmDriverInitCompleteCallback (void)
Indicates that the PWM driver has been initialized and the bulb should drive the initial LED PWM values at this time.
void halBulbPwmDriverBlinkOnCallback (void)
Generated during blinking behavior when it is time to turn the bulb on. While the plugin will determine when to blink the bulb on or off, it is up to this callback to determine how to turn the bulb on.
void halBulbPwmDriverBlinkOffCallback (void)
Generated during blinking behavior when it is time to turn the bulb off. While the plugin will determine when to blink the bulb on or off, it is up to this callback to determine how to turn the bulb off.
void halBulbPwmDriverBlinkStartCallback (void)
Generated when the application layer makes a call to initiate blinking behavior. It warns the application layer PWM code not to attempt to drive the LEDs directly and interfere with the blinking behavior.
void halBulbPwmDriverBlinkStopCallback (void)
Generated when the current blinking command finishes. The application layer PWM code must then determine what the bulb drive should be, based on the current application layer attributes (i.e., level, on/off, color XY, and so on.)

Detailed Description

These callbacks are contributed by the Bulb PWM Driver plugin.

Function Documentation

void halBulbPwmDriverBlinkOffCallback ( void )

Should be implemented by an application layer configuration plugin.

void halBulbPwmDriverBlinkOnCallback ( void )

Should be implemented by an application layer configuration plugin.

void halBulbPwmDriverBlinkStartCallback ( void )

Should be implemented by an application layer configuration plugin.

void halBulbPwmDriverBlinkStopCallback ( void )

Should be implemented by an application layer configuration plugin.

uint16_t halBulbPwmDriverFrequencyCallback ( void )

Should be implemented by an application layer configuration plugin.

void halBulbPwmDriverInitCompleteCallback ( void )

Should be implemented by an application layer configuration plugin.