|
libmygpio
libmygpio API documentation
|
This module provides functions for the gpiolist protocol command. More...
Functions | |
| bool | mygpio_gpiolist (struct t_mygpio_connection *connection) |
| struct t_mygpio_gpio * | mygpio_recv_gpio_list (struct t_mygpio_connection *connection) |
This module provides functions for the gpiolist protocol command.
| bool mygpio_gpiolist | ( | struct t_mygpio_connection * | connection | ) |
Lists the modes and values of all configured GPIOs. Retrieve the list elements with mygpio_recv_gpio_list and end the response with mygpio_response_end.
| connection | Pointer to the connection struct returned by mygpio_connection_new. |
| struct t_mygpio_gpio * mygpio_recv_gpio_list | ( | struct t_mygpio_connection * | connection | ) |
Receives a list element of mygpio_gpiolist. Use the mygpio_gpio_get_gpio_* functions to access the values. The caller must free it with mygpio_free_gpio.
| connection | Pointer to the connection struct returned by mygpio_connection_new. |