PebbleOS v4.47.0-1312-gf1984a001
Loading...
Searching...
No Matches
nrf54l_gpiote.h File Reference
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/drivers/intc.h>
#include <pbl/kernel/irq.h>

Data Structures

struct  pbl_gpio_nrf54l_gpiote_channel
 Owner of a GPIOTE channel. More...
 
struct  pbl_gpio_nrf54l_gpiote_state
 GPIOTE state. More...
 
struct  pbl_gpio_nrf54l_gpiote
 nRF54L GPIOTE. More...
 

Macros

#define PBL_GPIO_NRF54L_GPIOTE_CHANNELS   8U
 Most channels of a GPIOTE.
 
#define PBL_GPIO_NRF54L_GPIOTE_DEFINE(sym, _name, _base, _irq, _num_channels)
 Define an nRF54L GPIOTE.
 

Functions

int pbl_gpio_nrf54l_gpiote_configure (const struct pbl_gpio_nrf54l_gpiote *gpiote, const struct pbl_intc *intc, uint32_t hwirq, uint32_t port, uint32_t pin, uint32_t type)
 Bind a channel to a pin, for a line of an interrupt controller.
 
int pbl_gpio_nrf54l_gpiote_enable (const struct pbl_gpio_nrf54l_gpiote *gpiote, const struct pbl_intc *intc, uint32_t hwirq)
 Raise the events of the channel of a line.
 
int pbl_gpio_nrf54l_gpiote_disable (const struct pbl_gpio_nrf54l_gpiote *gpiote, const struct pbl_intc *intc, uint32_t hwirq)
 Stop the events of the channel of a line, leaving its input unsensed.
 
void pbl_gpio_nrf54l_gpiote_free (const struct pbl_gpio_nrf54l_gpiote *gpiote, const struct pbl_intc *intc, uint32_t hwirq)
 Unbind the channel of a line, leaving it to others.