ruuvi.drivers.c  ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
ruuvi_interface_gpio_interrupt.h File Reference

Go to the source code of this file.

Data Structures

struct  ri_gpio_evt_t
 Event from GPIO. More...
 

Typedefs

typedef void(* ri_gpio_interrupt_fp_t) (const ri_gpio_evt_t)
 

Enumerations

enum  ri_gpio_slope_t { RI_GPIO_SLOPE_HITOLO , RI_GPIO_SLOPE_LOTOHI , RI_GPIO_SLOPE_TOGGLE , RI_GPIO_SLOPE_UNKNOWN }
 Enable implementation selected by application. More...
 

Functions

rd_status_t ri_gpio_interrupt_init (ri_gpio_interrupt_fp_t *const interrupt_table, const uint16_t max_interrupts)
 Initialize interrupt functionality to GPIO. Takes address of interrupt table as a pointer to avoid tying driver into a specific board with a specific number of GPIO pins and to avoid including boards repository within the driver. The interrupt table must be retained in the RAM. More...
 
rd_status_t ri_gpio_interrupt_uninit (void)
 Uninitialize interrupt functionality of GPIO. More...
 
bool ri_gpio_interrupt_is_init (void)
 Check if interrupt module is initialized. More...
 
rd_status_t ri_gpio_interrupt_enable (const ri_gpio_id_t pin, const ri_gpio_slope_t slope, const ri_gpio_mode_t mode, const ri_gpio_interrupt_fp_t handler)
 Enable interrupt on a pin. More...
 
rd_status_t ri_gpio_interrupt_disable (const ri_gpio_id_t pin)
 Disable interrupt on a pin. More...
 

Detailed Description

Author
Otso Jousimaa otso@.nosp@m.ojou.nosp@m.sima..nosp@m.net
Date
2019-02-01

Interface for basic GPIO interrupt functions

Definition in file ruuvi_interface_gpio_interrupt.h.