Nordic stack and drivers for the mbed BLE API

Dependents:   idd_hw5_bleFanProto

Fork of nRF51822 by Nordic Semiconductor

Embed: (wiki syntax)

« Back to documentation index

app_button_cfg_t Struct Reference

app_button_cfg_t Struct Reference
[Button Handler]

Button configuration structure. More...

#include <app_button.h>

Data Fields

uint8_t pin_no
 Pin to be used as a button.
uint8_t active_state
 APP_BUTTON_ACTIVE_HIGH or APP_BUTTON_ACTIVE_LOW.
nrf_gpio_pin_pull_t pull_cfg
 Pull-up or -down configuration.
app_button_handler_t button_handler
 Handler to be called when button is pushed.

Detailed Description

Button configuration structure.

Definition at line 63 of file app_button.h.


Field Documentation

uint8_t active_state

APP_BUTTON_ACTIVE_HIGH or APP_BUTTON_ACTIVE_LOW.

Definition at line 66 of file app_button.h.

Handler to be called when button is pushed.

Definition at line 68 of file app_button.h.

uint8_t pin_no

Pin to be used as a button.

Definition at line 65 of file app_button.h.

Pull-up or -down configuration.

Definition at line 67 of file app_button.h.