1 /******************************************************************************
2  *
3  *  Copyright (C) 2018 The Linux Foundation
4  *
5  *  Licensed under the Apache License, Version 2.0 (the "License");
6  *  you may not use this file except in compliance with the License.
7  *  You may obtain a copy of the License at:
8  *
9  *  http://www.apache.org/licenses/LICENSE-2.0
10  *
11  *  Unless required by applicable law or agreed to in writing, software
12  *  distributed under the License is distributed on an "AS IS" BASIS,
13  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  *  See the License for the specific language governing permissions and
15  *  limitations under the License.
16  *
17  ******************************************************************************/
18 
19 #pragma once
20 
21 #define IOT_CONF_KEY_SECTION_ADAPTER "Adapter"
22 #define IOT_CONF_KEY_ADDRESS "Address"
23 
24 #define IOT_CONF_KEY_REMOTE_NAME "Name"
25 #define IOT_CONF_KEY_DEVCLASS "DevClass"
26 #define IOT_CONF_KEY_DEVTYPE "DevType"
27 #define IOT_CONF_KEY_ADDRTYPE "AddrType"
28 #define IOT_CONF_KEY_MANUFACTURER "Manufacturer"
29 #define IOT_CONF_KEY_LMPVER "LmpVer"
30 #define IOT_CONF_KEY_LMPSUBVER "LmpSubVer"
31 #define IOT_CONF_KEY_PAIRTYPE "PairType"
32 #define IOT_CONF_KEY_LE_PAIRTYPE "LE_PairType"
33 #define IOT_CONF_KEY_RT_SUPP_FEATURES "RemoteSupportedFeatures"
34 #define IOT_CONF_KEY_RT_EXT_FEATURES "RemoteExtendedFeatures"
35 #define IOT_CONF_KEY_LE_RT_FEATURES "LE_RemoteSupportedFeatures"
36 #define IOT_CONF_KEY_RECORDED "Recorded"
37 
38 #define IOT_CONF_KEY_GAP_CONN_COUNT "ProfileGap_ConnectCount"
39 #define IOT_CONF_KEY_GAP_CONN_FAIL_COUNT "ProfileGap_ConnectFailCount"
40 #define IOT_CONF_KEY_GAP_DISC_COUNT "ProfileGap_DiscCount"
41 #define IOT_CONF_KEY_GAP_DISC_AUTHFAIL_COUNT "ProfileGap_DiscAuthFailCount"
42 #define IOT_CONF_KEY_GAP_DISC_CONNTIMEOUT_COUNT \
43   "ProfileGap_DiscConnTimeoutCount"
44 #define IOT_CONF_KEY_A2DP_ROLE "ProfileA2dp_Role"
45 #define IOT_CONF_KEY_A2DP_VERSION "ProfileA2dp_Version"
46 #define IOT_CONF_KEY_A2DP_CODECTYPE "ProfileA2dp_CodecType"
47 #define IOT_CONF_KEY_A2DP_CONN_COUNT "ProfileA2dp_ConnectCount"
48 #define IOT_CONF_KEY_A2DP_CONN_FAIL_COUNT "ProfileA2dp_ConnectFailCount"
49 #define IOT_CONF_KEY_HFP_ROLE "ProfileHfp_Role"
50 #define IOT_CONF_KEY_HFP_VERSION "ProfileHfp_Version"
51 #define IOT_CONF_KEY_HFP_CODECTYPE "ProfileHfp_CodecType"
52 #define IOT_CONF_KEY_HFP_SLC_CONN_COUNT "ProfileHfp_SlcConnectCount"
53 #define IOT_CONF_KEY_HFP_SLC_CONN_FAIL_COUNT "ProfileHfp_SlcConnectFailCount"
54 #define IOT_CONF_KEY_HFP_SCO_CONN_COUNT "ProfileHfp_ScoConnectCount"
55 #define IOT_CONF_KEY_HFP_SCO_CONN_FAIL_COUNT "ProfileHfp_ScoConnectFailCount"
56 #define IOT_CONF_KEY_HFP_FEATURES "ProfileHfp_Features"
57 #define IOT_CONF_KEY_AVRCP_CTRL_VERSION "ProfileAvrcp_ControllerVersion"
58 #define IOT_CONF_KEY_AVRCP_TG_VERSION "ProfileAvrcp_TargetVersion"
59 #define IOT_CONF_KEY_AVRCP_CONN_COUNT "ProfileAvrcp_ConnectCount"
60 #define IOT_CONF_KEY_AVRCP_CONN_FAIL_COUNT "ProfileAvrcp_ConnectFailCount"
61 #define IOT_CONF_KEY_AVRCP_FEATURES "ProfileAvrcp_Features"
62 #define IOT_CONF_KEY_HID_ROLE "ProfileHid_Role"
63 #define IOT_CONF_KEY_HID_VERSION "ProfileHid_Version"
64 #define IOT_CONF_KEY_HID_CONN_COUNT "ProfileHid_ConnectCount"
65 #define IOT_CONF_KEY_HID_CONN_FAIL_COUNT "ProfileHid_ConnectFailCount"
66 #define IOT_CONF_KEY_PBAP_ROLE "ProfilePbap_Role"
67 #define IOT_CONF_KEY_PBAP_VERSION "ProfilePbap_Version"
68 #define IOT_CONF_KEY_PBAP_CONN_COUNT "ProfilePbap_ConnectCount"
69 #define IOT_CONF_KEY_PBAP_CONN_FAIL_COUNT "ProfilePbap_ConnectFailCount"
70 #define IOT_CONF_KEY_MAP_ROLE "ProfileMap_Role"
71 #define IOT_CONF_KEY_MAP_VERSION "ProfileMap_Version"
72 #define IOT_CONF_KEY_MAP_CONN_COUNT "ProfileMap_ConnectCount"
73 #define IOT_CONF_KEY_MAP_CONN_FAIL_COUNT "ProfileMap_ConnectFailCount"
74 
75 #define IOT_CONF_VAL_PAIR_TYPE_LEGACY 0
76 #define IOT_CONF_VAL_PAIR_TYPE_SSP 1
77 #define IOT_CONF_VAL_LE_PAIRTYPE_LEGACY 0
78 #define IOT_CONF_VAL_LE_PAIRTYPE_SECURE 1
79 #define IOT_CONF_VAL_RECORDED_DEFAULT 0
80 
81 #define IOT_CONF_VAL_A2DP_ROLE_SINK 0
82 #define IOT_CONF_VAL_A2DP_ROLE_SOURCE 1
83 #define IOT_CONF_VAL_A2DP_CODECTYPE_SBC 0x01
84 #define IOT_CONF_VAL_A2DP_CODECTYPE_APTX 0x02
85 #define IOT_CONF_VAL_A2DP_CODECTYPE_APTXHD 0x04
86 #define IOT_CONF_VAL_A2DP_CODECTYPE_AAC 0x08
87 #define IOT_CONF_VAL_A2DP_CODECTYPE_LDAC 0x10
88 #define IOT_CONF_VAL_A2DP_CODECTYPE_APTXADAPTIVE 0x20
89 #define IOT_CONF_VAL_A2DP_CODECTYPE_APTXTWS 0x40
90 
91 #define IOT_CONF_VAL_HFP_ROLE_CLIENT 0
92 #define IOT_CONF_VAL_HFP_ROLE_AG 1
93 #define IOT_CONF_VAL_HFP_CODECTYPE_CVSD 0x01
94 #define IOT_CONF_VAL_HFP_CODECTYPE_CVSDMSBC 0x02
95 
96 #define IOT_CONF_VAL_HID_ROLE_HOST 0
97 #define IOT_CONF_VAL_HID_ROLE_DEVICE 1
98 
99 #define IOT_CONF_VAL_PBAP_ROLE_CLIENT 0
100 #define IOT_CONF_VAL_PBAP_ROLE_SERVER 1
101 
102 #define IOT_CONF_VAL_MAP_ROLE_CLIENT 0
103 #define IOT_CONF_VAL_MAP_ROLE_SERVER 1
104 
105 #define IOT_CONF_BYTE_NUM_1 1
106 #define IOT_CONF_BYTE_NUM_2 2
107 #define IOT_CONF_BYTE_NUM_3 3
108 #define IOT_CONF_BYTE_NUM_4 4