9 #include "qm_soc_regs.h"
46 void (*callback)(
void *data, uint32_t int_status);
int qm_gpio_clear_pin(const qm_gpio_t gpio, const uint8_t pin)
Clear a single pin on a given GPIO port.
uint32_t int_polarity
Interrupt polarity, 0b: low, 1b: high.
uint32_t direction
GPIO direction, 0b: input, 1b: output.
int qm_gpio_read_pin(const qm_gpio_t gpio, const uint8_t pin, qm_gpio_state_t *const state)
Read the current state of a single pin on a given GPIO port.
int qm_gpio_set_pin(const qm_gpio_t gpio, const uint8_t pin)
Set a single pin on a given GPIO port.
int qm_gpio_write_port(const qm_gpio_t gpio, const uint32_t val)
Write a value to every pin on a GPIO port.
uint32_t int_debounce
Interrupt debounce on/off.
uint32_t int_type
Interrupt type, 0b: level; 1b: edge.
uint32_t int_bothedge
Interrupt on rising and falling edges.
int qm_gpio_save_context(const qm_gpio_t gpio, qm_gpio_context_t *const ctx)
Save GPIO context.
int qm_gpio_set_pin_state(const qm_gpio_t gpio, const uint8_t pin, const qm_gpio_state_t state)
Set or clear a single GPIO pin using a state variable.
uint32_t int_en
Interrupt enable.
qm_gpio_state_t
GPIO pin states.
qm_gpio_t
Number of GPIO controllers.
int qm_gpio_read_port(const qm_gpio_t gpio, uint32_t *const port)
Read the value of every pin on a GPIO port.
int qm_gpio_restore_context(const qm_gpio_t gpio, const qm_gpio_context_t *const ctx)
Restore GPIO context.
void * callback_data
Callback user data.
GPIO port configuration type.
int qm_gpio_set_config(const qm_gpio_t gpio, const qm_gpio_port_config_t *const cfg)
Set GPIO port configuration.