Battery Service Client module. More...
Macros |
|
| #define | BLE_BAS_C_DEF (_name) |
|
Macro for defining a ble_bas_c instance.
More...
|
|
| #define | BLE_BAS_C_ARRAY_DEF (_name, _cnt) |
|
Macro for defining multiple ble_bas_c instances.
More...
|
|
Detailed Description
Battery Service Client module.
This module contains APIs to read and interact with the Battery Service of a remote device.
- Note
-
The application must register this module as the BLE event observer by using the NRF_SDH_BLE_OBSERVER macro. Example:
ble_bas_c_t instance;NRF_SDH_BLE_OBSERVER (anything, BLE_BAS_C_BLE_OBSERVER_PRIO ,ble_bas_c_on_ble_evt , &instance);
Macro Definition Documentation
| #define BLE_BAS_C_ARRAY_DEF | ( | _name, | |
| _cnt | |||
| ) |
Macro for defining multiple ble_bas_c instances.
- Parameters
-
_name Name of the array of instances. _cnt Number of instances to define.
| #define BLE_BAS_C_DEF | ( | _name | ) |
Macro for defining a ble_bas_c instance.
- Parameters
-
_name Name of the instance.