Appiko
Data Structures | Functions
GPIO level handler

Driver to use GPIOTE port event to detect whenever any of multiple GPIO pins are at a specified polarity. This module can be used to wake the nRF SoC from the SYSTEM OFF mode and consumes about 1 uA of current. More...

Data Structures

struct  gpio_level_cfg
 The configuration parameter for each of the GPIO pin that is being configured in the GPIO level handler module. More...
 

Functions

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 need to be monitored. More...
 

Detailed Description

Function Documentation

◆ gpio_level_init()

void gpio_level_init ( gpio_level_cfg cfg,
uint32_t  cfg_num,
uint32_t  irq_priority 
)
Parameters
cfgA pointer to an array of GPIO configurations which need to be configured to generate port events and call the appropriate handler
cfg_numThe size of the array
irq_priorityThe priority of the GPIOTE port event IRQ handler

TODO revert the GPIO configs of the previously configured pins

Definition at line 31 of file gpio_level_handler.c.