nRF51 SDK: app_button_cfg_t Struct Reference

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

- Data Structures
- Data Structure Index
- Data Fields

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
app_button_cfg_t Struct Reference
Button Handler

Button configuration structure. More...

`#include <app_button.h>`

## Data Fields

uint8_t | pin_no
uint8_t | active_state
nrf_gpio_pin_pull_t | pull_cfg
app_button_handler_t | button_handler

## Detailed Description

Button configuration structure.

## Field Documentation

uint8_t app_button_cfg_t::active_state

APP_BUTTON_ACTIVE_HIGH or APP_BUTTON_ACTIVE_LOW.

app_button_handler_t app_button_cfg_t::button_handler

Handler to be called when button is pushed.

uint8_t app_button_cfg_t::pin_no

Pin to be used as a button.

nrf_gpio_pin_pull_t app_button_cfg_t::pull_cfg

Pull-up or -down configuration.