8 #include <aos/device.h>
70 aos_gpio_irq_handler_t irq_handler,
void *irq_arg);
void aos_gpioc_put(aos_gpioc_ref_t *ref)
Release a GPIO controller device.
aos_status_t aos_gpioc_get_value(aos_gpioc_ref_t *ref, uint32_t pin)
Get the input or output level of a GPIO pin.
aos_status_t aos_gpioc_set_value(aos_gpioc_ref_t *ref, uint32_t pin, int val)
Set the output level of a GPIO pin.
aos_status_t aos_gpioc_get(aos_gpioc_ref_t *ref, uint32_t id)
Get a GPIO controller device.
aos_status_t aos_gpioc_set_mode(aos_gpioc_ref_t *ref, uint32_t pin, uint32_t mode)
Set the parameters associated with a GPIO pin.
aos_status_t aos_gpioc_toggle(aos_gpioc_ref_t *ref, uint32_t pin)
Toggle the output level of a GPIO pin.
aos_dev_ref_t aos_gpioc_ref_t
aos_status_t aos_gpioc_get_num_pins(aos_gpioc_ref_t *ref)
Get number of pins on a GPIO controller device.
aos_status_t aos_gpioc_get_mode(aos_gpioc_ref_t *ref, uint32_t pin, uint32_t *mode)
Get the parameters associated with a GPIO pin.
aos_status_t aos_gpioc_set_mode_irq(aos_gpioc_ref_t *ref, uint32_t pin, uint32_t mode, aos_gpio_irq_handler_t irq_handler, void *irq_arg)
Set the parameters and IRQ settings associated with a GPIO pin.