|
void | pi_gpio_conf_init (struct pi_gpio_conf *conf) |
| Initialize a GPIO configuration with default values. More...
|
|
int | pi_gpio_open (struct pi_device *device) |
| Open a GPIO device. More...
|
|
void | pi_gpio_close (struct pi_device *device) |
| Close an opened GPIO device. More...
|
|
int | pi_gpio_pin_configure (struct pi_device *device, pi_gpio_e gpio, pi_gpio_flags_e flags) |
| Configure a GPIO. More...
|
|
int | pi_gpio_pin_write (struct pi_device *device, uint32_t pin, uint32_t value) |
| Set value of a single GPIO. More...
|
|
int | pi_gpio_pin_read (struct pi_device *device, uint32_t pin, uint32_t *value) |
| Get value of a single GPIO. More...
|
|
void | pi_gpio_pin_notif_configure (struct pi_device *device, uint32_t pin, pi_gpio_notif_e flags) |
| Configure notifications for a GPIO. More...
|
|
void | pi_gpio_pin_notif_clear (struct pi_device *device, uint32_t pin) |
| Clear notification for a GPIO. More...
|
|
int | pi_gpio_pin_notif_get (struct pi_device *device, uint32_t pin) |
| Get the value of a notification for a GPIO. More...
|
|
int | pi_gpio_pin_task_add (struct pi_device *device, uint32_t pin, pi_task_t *task, pi_gpio_notif_e flags) |
| Attach an event task callback to a GPIO pin. More...
|
|
int | pi_gpio_pin_task_remove (struct pi_device *device, uint32_t pin) |
| Remove an event task callback attached to a GPIO pin. More...
|
|
static void | pi_gpio_callback_init (pi_gpio_callback_t *cb, uint32_t pin_mask, pi_callback_func_t handler, void *arg) |
| Init GPIO callback. More...
|
|
int | pi_gpio_callback_add (struct pi_device *device, pi_gpio_callback_t *cb) |
| Attach a callback. More...
|
|
int | pi_gpio_callback_remove (struct pi_device *device, pi_gpio_callback_t *cb) |
| Remove a callback. More...
|
|