The aio proxy provides an interface to the analog input/output sensors. More...
Detailed Description
The aio proxy provides an interface to the analog input/output sensors.
Classes | |
struct | playerc_aio_t |
Aio proxy data. More... | |
Functions | |
PLAYERC_EXPORT playerc_aio_t * | playerc_aio_create (playerc_client_t *client, int index) |
Create a aio proxy. More... | |
PLAYERC_EXPORT void | playerc_aio_destroy (playerc_aio_t *device) |
Destroy a aio proxy. More... | |
PLAYERC_EXPORT int | playerc_aio_subscribe (playerc_aio_t *device, int access) |
Subscribe to the aio device. More... | |
PLAYERC_EXPORT int | playerc_aio_unsubscribe (playerc_aio_t *device) |
Un-subscribe from the aio device. More... | |
PLAYERC_EXPORT int | playerc_aio_set_output (playerc_aio_t *device, uint8_t id, float volt) |
Set the output for the aio device. More... | |
PLAYERC_EXPORT float | playerc_aio_get_data (playerc_aio_t *device, uint32_t index) |
get the aio data | |
Function Documentation
◆ playerc_aio_create()
PLAYERC_EXPORT playerc_aio_t* playerc_aio_create | ( | playerc_client_t * | client, |
int | index | ||
) |
Create a aio proxy.
◆ playerc_aio_destroy()
PLAYERC_EXPORT void playerc_aio_destroy | ( | playerc_aio_t * | device | ) |
Destroy a aio proxy.
◆ playerc_aio_set_output()
PLAYERC_EXPORT int playerc_aio_set_output | ( | playerc_aio_t * | device, |
uint8_t | id, | ||
float | volt | ||
) |
Set the output for the aio device.
◆ playerc_aio_subscribe()
PLAYERC_EXPORT int playerc_aio_subscribe | ( | playerc_aio_t * | device, |
int | access | ||
) |
Subscribe to the aio device.
◆ playerc_aio_unsubscribe()
PLAYERC_EXPORT int playerc_aio_unsubscribe | ( | playerc_aio_t * | device | ) |
Un-subscribe from the aio device.