app_gpiote.h
Go to the documentation of this file.
1 
52 #ifndef _APP_GPIOTE_H_
53 #define _APP_GPIOTE_H_
54 
55 #include "app_io.h"
56 #include "app_drv_error.h"
57 
65 typedef struct
66 {
68  uint32_t pin;
71 
76 
80 typedef void (*app_io_callback_t)(app_gpiote_evt_t *p_evt);
81 
85 typedef struct
86 {
88  uint32_t pin;
94 
97 /* Exported functions --------------------------------------------------------*/
114 uint16_t app_gpiote_init(const app_gpiote_param_t *p_params, uint8_t table_cnt);
115 
122 void app_gpiote_deinit(void);
123 
135 uint16_t app_gpiote_config(const app_gpiote_param_t *p_config);
136 
137 
140 #endif
141 
app_gpiote_param_t::pull
app_io_pull_t pull
Definition: app_gpiote.h:90
app_gpiote_evt_t::ctx_type
app_ctx_type_t ctx_type
Definition: app_gpiote.h:69
app_gpiote_config
uint16_t app_gpiote_config(const app_gpiote_param_t *p_config)
Config the APP GPIO Interrupt DRIVER according to the specified parameters in the app_gpiote_param_t.
app_gpiote_param_t::mode
app_io_mode_t mode
Definition: app_gpiote.h:89
app_gpiote_param_t::handle_mode
app_handle_mode_t handle_mode
Definition: app_gpiote.h:91
app_io_pull_t
app_io_pull_t
GPIO pull Enumerations definition.
Definition: app_io.h:187
app_io_type_t
app_io_type_t
GPIO type Enumerations definition.
Definition: app_io.h:141
app_ctx_type_t
app_ctx_type_t
GPIO handler context type Enumerations definition.
Definition: app_io.h:178
app_io_mode_t
app_io_mode_t
GPIO mode Enumerations definition.
Definition: app_io.h:152
app_gpiote_event_handler_t
void(* app_gpiote_event_handler_t)(app_gpiote_evt_t *p_evt)
GPIOTE input event handler type.
Definition: app_gpiote.h:75
app_io_callback_t
void(* app_io_callback_t)(app_gpiote_evt_t *p_evt)
GPIOTE callback type.
Definition: app_gpiote.h:80
app_gpiote_evt_t::pin
uint32_t pin
Definition: app_gpiote.h:68
app_gpiote_init
uint16_t app_gpiote_init(const app_gpiote_param_t *p_params, uint8_t table_cnt)
Initialize the APP GPIO Interrupt DRIVER according to the specified parameters in the app_gpiote_para...
app_io.h
Header file containing functions prototypes of GPIO app library.
app_gpiote_param_t::io_evt_cb
app_io_callback_t io_evt_cb
Definition: app_gpiote.h:92
app_gpiote_param_t
GPIOTE Interrupt parameters structure definition.
Definition: app_gpiote.h:86
app_gpiote_param_t::pin
uint32_t pin
Definition: app_gpiote.h:88
app_gpiote_evt_t::type
app_io_type_t type
Definition: app_gpiote.h:67
app_handle_mode_t
app_handle_mode_t
GPIO wake-up mode Enumerations definition.
Definition: app_io.h:168
app_gpiote_param_t::type
app_io_type_t type
Definition: app_gpiote.h:87
app_gpiote_deinit
void app_gpiote_deinit(void)
De-initialize the APP GPIO Interrupt DRIVER peripheral.
app_drv_error.h
Header file of app driver error code.
app_gpiote_evt_t
GPIO Interrupt event Structure definition.
Definition: app_gpiote.h:66