Appiko
gpio_level_handler.h
1 
31 #ifndef CODEBASE_PERIPHERAL_MODULES_GPIO_LEVEL_HANDLER_H_
32 #define CODEBASE_PERIPHERAL_MODULES_GPIO_LEVEL_HANDLER_H_
33 
34 #include "stdint.h"
35 #include "stdbool.h"
36 
41 typedef struct
42 {
43  void (*handler)(bool is_still_on);
44  uint32_t pin_num;
46  uint32_t pull_cfg;
47  bool trigger_on_high;
51 
60 void gpio_level_init(gpio_level_cfg * cfg, uint32_t cfg_num, uint32_t irq_priority);
61 
62 #endif /* CODEBASE_PERIPHERAL_MODULES_GPIO_LEVEL_HANDLER_H_ */
63 
uint32_t pull_cfg
The pin number.
The configuration parameter for each of the GPIO pin that is being configured in the GPIO level handl...
void gpio_level_init(gpio_level_cfg *cfg, uint32_t cfg_num, uint32_t irq_priority)
Initializes the GPIO level handler module by taking in the the configurations of all the GPIOs that n...