99#define IS_RISING_EDGE(event) ((event & GPIO_IN_EVENT_RISING_EDGE) == GPIO_IN_EVENT_RISING_EDGE)
101#define IS_FALLING_EDGE(event) ((event & GPIO_IN_EVENT_FALLING_EDGE) == GPIO_IN_EVENT_FALLING_EDGE)
gpio_res_e Gpio_inputRead(gpio_id_t id, gpio_level_e *level)
Read the GPIO input level.
uint8_t gpio_id_t
GPIO identification number.
gpio_in_mode_cfg_e in_mode_cfg
gpio_res_e Gpio_outputSetCfg(gpio_id_t id, const gpio_out_cfg_t *out_cfg)
Configure a GPIO as an output GPIO.
gpio_res_e Gpio_outputRead(gpio_id_t id, gpio_level_e *level)
Read the GPIO output level.
gpio_in_event_cb_f event_cb
uint8_t gpio_pin_t
GPIO pin number.
uint8_t Gpio_getNumber(void)
Get the number of GPIOs.
uint8_t gpio_port_t
GPIO port number.
gpio_res_e Gpio_outputToggle(gpio_id_t id)
Toggle GPIO output level.
gpio_res_e Gpio_inputSetCfg(gpio_id_t id, const gpio_in_cfg_t *in_cfg)
Configure a GPIO as an input GPIO.
gpio_in_event_e
GPIO event.
@ GPIO_IN_EVENT_FALLING_EDGE
@ GPIO_IN_EVENT_RISING_EDGE
gpio_res_e Gpio_init(void)
Initialize GPIO module.
gpio_out_mode_cfg_e
GPIO operating mode configuration.
@ GPIO_OUT_MODE_OPEN_DRAIN_WITH_PULL_UP
@ GPIO_OUT_MODE_OPEN_DRAIN
@ GPIO_OUT_MODE_PUSH_PULL
gpio_level_e
GPIO logical level.
gpio_in_mode_cfg_e
GPIO pull configuration.
gpio_level_e level_default
void(* gpio_in_event_cb_f)(gpio_id_t id, gpio_in_event_e event)
Callback structure for a GPIO event.
gpio_res_e
List of return code.
@ GPIO_RES_INVALID_DIRECTION
@ GPIO_RES_NOT_IMPLEMENTED
gpio_res_e Gpio_outputWrite(gpio_id_t id, gpio_level_e level)
Write GPIO output level.
gpio_res_e Gpio_getPin(gpio_id_t id, gpio_port_t *port, gpio_pin_t *pin)
Get the GPIO port and pin numbers of the given GPIO id.
gpio_in_event_e event_cfg
gpio_out_mode_cfg_e out_mode_cfg
GPIO output configuration.
GPIO input configuration.