blinkenlight
[Device proxies]
Collaboration diagram for blinkenlight:
![]() |
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_blinkenlight_t * | playerc_blinkenlight_create (playerc_client_t *client, int index) |
Create a blinkenlight proxy. | |
void | playerc_blinkenlight_destroy (playerc_blinkenlight_t *device) |
Destroy a blinkenlight proxy. | |
int | playerc_blinkenlight_subscribe (playerc_blinkenlight_t *device, int access) |
Subscribe to the blinkenlight device. | |
int | playerc_blinkenlight_unsubscribe (playerc_blinkenlight_t *device) |
Un-subscribe from the blinkenlight device. | |
int | playerc_blinkenlight_enable (playerc_blinkenlight_t *device, uint32_t enable) |
Enable/disable power to the blinkenlight device. | |
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. | |
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). |
Function Documentation
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).
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_t* playerc_blinkenlight_create | ( | playerc_client_t * | client, | |
int | index | |||
) |
Create a blinkenlight proxy.
void playerc_blinkenlight_destroy | ( | playerc_blinkenlight_t * | device | ) |
Destroy a blinkenlight proxy.
int playerc_blinkenlight_enable | ( | playerc_blinkenlight_t * | device, | |
uint32_t | enable | |||
) |
Enable/disable power to the blinkenlight device.
int playerc_blinkenlight_subscribe | ( | playerc_blinkenlight_t * | device, | |
int | access | |||
) |
Subscribe to the blinkenlight device.
int playerc_blinkenlight_unsubscribe | ( | playerc_blinkenlight_t * | device | ) |
Un-subscribe from the blinkenlight device.