Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
ble_bas_c.h File Reference
Go to the source code of this file.
Data Structures | |
struct | ble_bas_c_evt_t |
Battery Service Client Event structure. More... | |
struct | ble_bas_c_s |
Battery Service Client structure. More... | |
struct | ble_bas_c_init_t |
Battery Service Client initialization structure. More... | |
Typedefs | |
typedef struct ble_bas_c_s | ble_bas_c_t |
Battery Service Client structure. | |
typedef void(* | ble_bas_c_evt_handler_t )(ble_bas_c_t *p_bas_bas_c, ble_bas_c_evt_t *p_evt) |
Event handler type. | |
Enumerations | |
enum | ble_bas_c_evt_type_t { BLE_BAS_C_EVT_DISCOVERY_COMPLETE, BLE_BAS_C_EVT_BATT_NOTIFICATION, BLE_BAS_C_EVT_BATT_READ_RESP } |
Battery Service Client event type. More... | |
Functions | |
uint32_t | ble_bas_c_init (ble_bas_c_t *p_ble_bas_c, ble_bas_c_init_t *p_ble_bas_c_init) |
Function for initializing the Battery Service Client module. | |
void | ble_bas_c_on_ble_evt (ble_bas_c_t *p_ble_bas_c, const ble_evt_t *p_ble_evt) |
Function for handling BLE events from the SoftDevice. | |
uint32_t | ble_bas_c_bl_notif_enable (ble_bas_c_t *p_ble_bas_c) |
Function for enabling notifications on the Battery Level characteristic. | |
uint32_t | ble_bas_c_bl_read (ble_bas_c_t *p_ble_bas_c) |
Function for reading the Battery Level characteristic. |
Detailed Description
Definition in file ble_bas_c.h.
Generated on Tue Jul 12 2022 20:04:43 by
