nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches
LED Button Service

LED Button Service. More...

Data Structures

struct  ble_lbs_evt
 
struct  ble_lbs_config
 LED Button Service init structure. This structure contains all options and data needed for initialization of the service. More...
 
struct  ble_lbs
 Bluetooth LE Button Service structure. More...
 

Macros

#define BLE_UUID_LBS_BASE
 
#define BLE_UUID_LBS_SERVICE   0x1523
 
#define BLE_UUID_LBS_BUTTON_CHAR   0x1524
 
#define BLE_UUID_LBS_LED_CHAR   0x1525
 
#define BLE_LBS_DEF(_name)
 Define a LED Button service instance.
 
#define BLE_LBS_CONFIG_SEC_MODE_DEFAULT
 Default security configuration.
 

Typedefs

typedef void(* lbs_evt_handler_t) (struct ble_lbs *lbs, const struct ble_lbs_evt *lbs_evt)
 LED button Service event handler.
 

Enumerations

enum  ble_lbs_evt_type { BLE_LBS_EVT_LED_WRITE , BLE_LBS_EVT_ERROR }
 

Functions

uint32_t ble_lbs_init (struct ble_lbs *lbs, const struct ble_lbs_config *cfg)
 Function for initializing the LED Button Service.
 
void ble_lbs_on_ble_evt (const ble_evt_t *ble_evt, void *ble_lbs)
 Bluetooth LE event handler for the LED Button Service.
 
uint32_t ble_lbs_on_button_change (struct ble_lbs *lbs, uint16_t conn_handle, uint8_t button_state)
 Function for sending a button state notification.
 

Detailed Description

LED Button Service.