Battery Service declarations.
Copyright (c) 2017-2019 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | BAT_CHAR_PRESENTATION_FORMAT_DESCRIPTOR 0x0000 |
Characteristic presentation format descriptor. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_EXPONENT 0x00 |
Characteristic presentation format exponent. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_NAMESPACE 0x01 |
Characteristic presentation format namespace. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_UNIT BAT_SERVICE_UUID |
Characteristic presentation format unit. More... | |
#define | BAT_CHAR_PRESENTATION_FORMAT_VALUE 0x04 |
characteristic presentation format value More... | |
Functions | |
void | bat_init_service (gatt_service_handler_t *battery_serv, uint8_t *battery_value) |
Battery service and characteristic initialization(Called only once by user). More... | |
at_ble_status_t | bat_primary_service_define (gatt_service_handler_t *battery_service) |
Register a battery service instance inside stack. More... | |
at_ble_status_t | bat_update_char_value (gatt_service_handler_t *battery_serv, uint8_t char_data) |
Update the battery characteristic value after defining the services using bat_primary_service_define. More... | |