blinkenlight
The blinkenlight proxy provides an interface to a (possibly colored and/or blinking) indicator light. More...
Detailed Description
The blinkenlight proxy provides an interface to a (possibly colored and/or blinking) indicator light.
Classes | |
struct | playerc_blinkenlight_t |
Blinklight proxy data. More... | |
Functions | |
PLAYERC_EXPORT playerc_blinkenlight_t * | playerc_blinkenlight_create (playerc_client_t *client, int index) |
Create a blinkenlight proxy. More... | |
PLAYERC_EXPORT void | playerc_blinkenlight_destroy (playerc_blinkenlight_t *device) |
Destroy a blinkenlight proxy. More... | |
PLAYERC_EXPORT int | playerc_blinkenlight_subscribe (playerc_blinkenlight_t *device, int access) |
Subscribe to the blinkenlight device. More... | |
PLAYERC_EXPORT int | playerc_blinkenlight_unsubscribe (playerc_blinkenlight_t *device) |
Un-subscribe from the blinkenlight device. More... | |
PLAYERC_EXPORT int | playerc_blinkenlight_enable (playerc_blinkenlight_t *device, uint32_t enable) |
Enable/disable power to the blinkenlight device. More... | |
PLAYERC_EXPORT int | playerc_blinkenlight_color (playerc_blinkenlight_t *device, uint32_t id, uint8_t red, uint8_t green, uint8_t blue) |
Set the output color for the blinkenlight device. More... | |
PLAYERC_EXPORT int | playerc_blinkenlight_blink (playerc_blinkenlight_t *device, uint32_t id, float period, float duty_cycle) |
Make the light blink, setting the period in seconds and the mark/space ratiom (0.0 to 1.0). More... | |
Function Documentation
◆ playerc_blinkenlight_blink()
PLAYERC_EXPORT int playerc_blinkenlight_blink | ( | playerc_blinkenlight_t * | device, |
uint32_t | id, | ||
float | period, | ||
float | duty_cycle | ||
) |
Make the light blink, setting the period in seconds and the mark/space ratiom (0.0 to 1.0).
◆ playerc_blinkenlight_color()
PLAYERC_EXPORT int playerc_blinkenlight_color | ( | playerc_blinkenlight_t * | device, |
uint32_t | id, | ||
uint8_t | red, | ||
uint8_t | green, | ||
uint8_t | blue | ||
) |
Set the output color for the blinkenlight device.
◆ playerc_blinkenlight_create()
PLAYERC_EXPORT playerc_blinkenlight_t* playerc_blinkenlight_create | ( | playerc_client_t * | client, |
int | index | ||
) |
Create a blinkenlight proxy.
◆ playerc_blinkenlight_destroy()
PLAYERC_EXPORT void playerc_blinkenlight_destroy | ( | playerc_blinkenlight_t * | device | ) |
Destroy a blinkenlight proxy.
◆ playerc_blinkenlight_enable()
PLAYERC_EXPORT int playerc_blinkenlight_enable | ( | playerc_blinkenlight_t * | device, |
uint32_t | enable | ||
) |
Enable/disable power to the blinkenlight device.
◆ playerc_blinkenlight_subscribe()
PLAYERC_EXPORT int playerc_blinkenlight_subscribe | ( | playerc_blinkenlight_t * | device, |
int | access | ||
) |
Subscribe to the blinkenlight device.
◆ playerc_blinkenlight_unsubscribe()
PLAYERC_EXPORT int playerc_blinkenlight_unsubscribe | ( | playerc_blinkenlight_t * | device | ) |
Un-subscribe from the blinkenlight device.