nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
lbs.h File Reference
#include <zephyr/types.h>

Go to the source code of this file.

Data Structures

struct  bt_lbs_cb
 Callback struct used by the LBS Service. More...
 

Macros

#define BT_UUID_LBS_VAL    BT_UUID_128_ENCODE(0x00001523, 0x1212, 0xefde, 0x1523, 0x785feabcd123)
 LBS Service UUID.
 
#define BT_UUID_LBS_BUTTON_VAL    BT_UUID_128_ENCODE(0x00001524, 0x1212, 0xefde, 0x1523, 0x785feabcd123)
 Button Characteristic UUID.
 
#define BT_UUID_LBS_LED_VAL    BT_UUID_128_ENCODE(0x00001525, 0x1212, 0xefde, 0x1523, 0x785feabcd123)
 LED Characteristic UUID.
 
#define BT_UUID_LBS   BT_UUID_DECLARE_128(BT_UUID_LBS_VAL)
 
#define BT_UUID_LBS_BUTTON   BT_UUID_DECLARE_128(BT_UUID_LBS_BUTTON_VAL)
 
#define BT_UUID_LBS_LED   BT_UUID_DECLARE_128(BT_UUID_LBS_LED_VAL)
 

Typedefs

typedef void(* led_cb_t) (const bool led_state)
 Callback type for when an LED state change is received.
 
typedef bool(* button_cb_t) (void)
 Callback type for when the button state is pulled.
 

Functions

int bt_lbs_init (struct bt_lbs_cb *callbacks)
 Initialize the LBS Service.
 
int bt_lbs_send_button_state (bool button_state)
 Send the button state.