blinkenlight
Device proxies

The blinkenlight proxy provides an interface to a (possibly colored and/or blinking) indicator light. More...

## 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...

## Detailed Description

The blinkenlight proxy provides an interface to a (possibly colored and/or blinking) indicator light.

## Function Documentation

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_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_EXPORT playerc_blinkenlight_t* playerc_blinkenlight_create | ( | playerc_client_t * | client,
|  | int | index
| ) |  |

Create a blinkenlight proxy.

PLAYERC_EXPORT void playerc_blinkenlight_destroy | ( | playerc_blinkenlight_t * | device | ) |

Destroy a blinkenlight proxy.

PLAYERC_EXPORT int playerc_blinkenlight_enable | ( | playerc_blinkenlight_t * | device,
|  | uint32_t | enable
| ) |  |

Enable/disable power to the blinkenlight device.

PLAYERC_EXPORT int playerc_blinkenlight_subscribe | ( | playerc_blinkenlight_t * | device,
|  | int | access
| ) |  |

Subscribe to the blinkenlight device.

PLAYERC_EXPORT int playerc_blinkenlight_unsubscribe | ( | playerc_blinkenlight_t * | device | ) |

Un-subscribe from the blinkenlight device.

Last updated 12 September 2005 21:38:45