Loading...
Searching...
No Matches

IRQ Support in Peripheral GPIO Low-Level API. More...

Detailed Description

IRQ Support in Peripheral GPIO Low-Level API.

Author
Marian Buschsieweke maria.nosp@m.n.bu.nosp@m.schsi.nosp@m.ewek.nosp@m.e@ovg.nosp@m.u.de
Warning
This API is not stable yet and intended for internal use only as of now.

Definition in file gpio_ll_irq.h.

#include <inttypes.h>
#include <stdbool.h>
#include <stdint.h>
#include "periph/gpio_ll.h"
+ Include dependency graph for gpio_ll_irq.h:

Go to the source code of this file.

Typedefs

typedef void(* gpio_ll_cb_t) (void *arg)
 Signature of event callback function that is called on IRQs.
 

Enumerations

enum  gpio_irq_trig_t {
  GPIO_TRIGGER_EDGE_FALLING , GPIO_TRIGGER_EDGE_RISING , GPIO_TRIGGER_EDGE_BOTH , GPIO_TRIGGER_LEVEL_HIGH ,
  GPIO_TRIGGER_LEVEL_LOW
}
 Definition of possible IRQ triggers. More...
 

Functions

int gpio_ll_irq (gpio_port_t port, uint8_t pin, gpio_irq_trig_t trig, gpio_ll_cb_t cb, void *arg)
 Set up an IRQ for the given GPIO pin and activate it.
 
void gpio_ll_irq_mask (gpio_port_t port, uint8_t pin)
 Mask IRQs on the given GPIO pin.
 
void gpio_ll_irq_unmask (gpio_port_t port, uint8_t pin)
 Unmask IRQs on the given GPIO pin.
 
void gpio_ll_irq_unmask_and_clear (gpio_port_t port, uint8_t pin)
 Unmask IRQs on the given GPIO pin and clear pending IRQs.
 
void gpio_ll_irq_off (gpio_port_t port, uint8_t pin)
 Disable IRQs on the given GPIO pin.