![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
Battery Service Client. More...
Data Structures | |
| struct | ble_bas_client_handles |
| Structure containing the handles related to the Battery Service found on the peer. More... | |
| struct | ble_bas_client_evt |
| Battery Service Client Event structure. More... | |
| struct | ble_bas_client |
| Battery Service Client structure. More... | |
| struct | ble_bas_client_config |
| Battery Service Client initialization structure. More... | |
Macros | |
| #define | BLE_BAS_CLIENT_DEF(_name) |
| Macro for defining a ble_bas_client instance. | |
Typedefs | |
| typedef void(* | ble_bas_client_evt_handler_t) (struct ble_bas_client *bas_client, const struct ble_bas_client_evt *evt) |
| Event handler type. | |
Enumerations | |
| enum | ble_bas_client_evt_type { BLE_BAS_CLIENT_EVT_DISCOVERY_COMPLETE , BLE_BAS_CLIENT_EVT_BATT_NOTIFICATION , BLE_BAS_CLIENT_EVT_BATT_READ_RESP , BLE_BAS_CLIENT_EVT_ERROR } |
| Battery Service Client event type. More... | |
Functions | |
| uint32_t | ble_bas_client_init (struct ble_bas_client *bas_client, const struct ble_bas_client_config *bas_client_config) |
| Initialize the Battery Service Client module. | |
| void | ble_bas_client_on_ble_evt (const ble_evt_t *ble_evt, void *ble_bas_client) |
| Bluetooth LE event handler for the Battery Service Client. | |
| uint32_t | ble_bas_client_bl_notif_enable (struct ble_bas_client *bas_client) |
| Enable notifications on the Battery Level characteristic. | |
| uint32_t | ble_bas_client_bl_notif_disable (struct ble_bas_client *bas_client) |
| Disable notifications on the Battery Level characteristic. | |
| uint32_t | ble_bas_client_bl_read (struct ble_bas_client *bas_client) |
| Read the Battery Level characteristic. | |
| void | ble_bas_on_db_disc_evt (struct ble_bas_client *bas_client, const struct ble_db_discovery_evt *evt) |
| Handle events from the Database Discovery module. | |
| uint32_t | ble_bas_client_handles_assign (struct ble_bas_client *bas_client, uint16_t conn_handle, const struct ble_bas_client_handles *peer_handles) |
| Assign client handles to the BAS Client instance. | |
Battery Service Client.