| Airoha M0 BLE API 1.0.5.4

service_battery.h
1 /******************************************************************************
2 Copyright (c) Airoha 2016 - All rights reserved
3
4 FILE NAME
5 service_battery.h
6 DESCRIPTION
7 NOTES
8 ********************************************************************************/
9 #ifndef _BATTERY_SERVICE_H_
10 #define _BATTERY_SERVICE_H_
11
18 #include "ble_gatt_server.h"
19
25 void BAS_init(bool support_notification);
33 void BAS_update_battery_level(uint8_t level, bool notify_after_update);
34
35
36
37
38
42 #endif
BAS_update_battery_level
void BAS_update_battery_level(uint8_t level, bool notify_after_update)
Update battery level.
BAS_init
void BAS_init(bool support_notification)
Initialization function of battery service.