SG RFID nRF51822 fork

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

app_button.h File Reference

app_button.h File Reference

Go to the source code of this file.

Data Structures

struct  app_button_cfg_t
 Button configuration structure. More...
struct  pin_transition_t
 Pin transition direction struct. More...

Typedefs

typedef void(* app_button_handler_t )(uint8_t pin_no, uint8_t button_action)
 Button event handler type.
typedef uint32_t(* app_button_evt_schedule_func_t )(app_button_handler_t button_handler, uint8_t pin_no, uint8_t button_action)
 Type of function for passing events from the Button Handler module to the scheduler.

Functions

uint32_t app_button_init (app_button_cfg_t *p_buttons, uint8_t button_count, uint32_t detection_delay, app_button_evt_schedule_func_t evt_schedule_func)
 Function for initializing the Buttons.
uint32_t app_button_enable (void)
 Function for enabling button detection.
uint32_t app_button_disable (void)
 Function for disabling button detection.
uint32_t app_button_is_pushed (uint8_t button_id, bool *p_is_pushed)
 Function for checking if a button is currently being pushed.

Detailed Description

Definition in file app_button.h.