EFR32 Mighty Gecko 1 Software Documentation  efr32mg1-doc-5.1.2
gpiointerrupt.h
Go to the documentation of this file.
1 /***************************************************************************/
16 #ifndef GPIOINTERRUPT_H
17 #define GPIOINTERRUPT_H
18 
19 #include "em_device.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 /***************************************************************************/
30 /***************************************************************************/
35 /*******************************************************************************
36  ******************************* TYPEDEFS **********************************
37  ******************************************************************************/
38 
46 typedef void (*GPIOINT_IrqCallbackPtr_t)(uint8_t pin);
47 
48 /*******************************************************************************
49  ****************************** PROTOTYPES *********************************
50  ******************************************************************************/
51 void GPIOINT_Init(void);
52 void GPIOINT_CallbackRegister(uint8_t pin, GPIOINT_IrqCallbackPtr_t callbackPtr);
53 static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin);
54 
55 /***************************************************************************/
66 static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin)
67 {
69 }
70 
73 #ifdef __cplusplus
74 }
75 #endif
76 
77 #endif /* GPIOINTERRUPT_H */
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
static __INLINE void GPIOINT_CallbackUnRegister(uint8_t pin)
Unregisters user callback for given pin number.
Definition: gpiointerrupt.h:66
void GPIOINT_CallbackRegister(uint8_t pin, GPIOINT_IrqCallbackPtr_t callbackPtr)
Registers user callback for given pin number.
Definition: gpiointerrupt.c:91
void(* GPIOINT_IrqCallbackPtr_t)(uint8_t pin)
GPIO interrupt callback function pointer.
Definition: gpiointerrupt.h:46
void GPIOINT_Init(void)
Initialization of GPIOINT module.
Definition: gpiointerrupt.c:67