-
Notifications
You must be signed in to change notification settings - Fork 0
/
battery_service_db.db
executable file
·58 lines (50 loc) · 1.74 KB
/
battery_service_db.db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/******************************************************************************
* Copyright (c) 2013 - 2016 Qualcomm Technologies International, Ltd.
* Part of CSR uEnergy SDK 2.6.0
* Application version 2.6.0.0
*
* FILE
* battery_service_db.db
*
* DESCRIPTION
* This file defines the Battery Service in JSON format. This file is
* included in the main application data base file which is used to
* produce ATT flat data base.
*
*****************************************************************************/
#ifndef __BATTERY_SERVICE_DB__
#define __BATTERY_SERVICE_DB__
#include "battery_uuids.h"
#include "user_config.h"
/* For service details, refer http://developer.bluetooth.org/gatt/services/
* Pages/ServiceViewer.aspx?u=org.bluetooth.service.battery_service.xml
*/
/* Primary service declaration of Battery service */
primary_service {
uuid : UUID_BATTERY_SERVICE,
name : "BATTERY_SERVICE", /* Name will be used in handle name macro */
/* Battery level characteristic */
/* Battery Level characteristic supports IRQ flag, thereby reads and writes on
* characteristic value are handled by application.
*/
characteristic {
uuid : UUID_BATTERY_LEVEL,
name : "BATT_LEVEL",
#ifdef PAIRING_SUPPORT
flags : [FLAG_IRQ, FLAG_ENCR_R],
#else
flags : [FLAG_IRQ],
#endif /*PAIRING_SUPPORT*/
properties : [read, notify],
value : 0x00,
client_config {
#ifdef PAIRING_SUPPORT
flags : [FLAG_IRQ, FLAG_ENCR_W],
#else
flags : [FLAG_IRQ],
#endif /*PAIRING_SUPPORT*/
name : "BATT_LEVEL_C_CFG"
}
}
},
#endif /* __BATTERY_SERVICE_DB__ */