nvds_tag.h
Go to the documentation of this file.
1 /**
2 ****************************************************************************************
3 *
4 * @file nvds_tag.h
5 *
6 * @brief Nvds tag management file.
7 *
8 ****************************************************************************************
9 * @attention
10 #####Copyright (c) 2019 GOODIX
11 All rights reserved.
12
13 Redistribution and use in source and binary forms, with or without
14 modification, are permitted provided that the following conditions are met:
15 * Redistributions of source code must retain the above copyright
16 notice, this list of conditions and the following disclaimer.
17 * Redistributions in binary form must reproduce the above copyright
18 notice, this list of conditions and the following disclaimer in the
19 documentation and/or other materials provided with the distribution.
20 * Neither the name of GOODIX nor the names of its contributors may be used
21 to endorse or promote products derived from this software without
22 specific prior written permission.
23
24 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
28 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE
33 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 POSSIBILITY OF SUCH DAMAGE.
35 *****************************************************************************************
36 */
37 /*
38 * DEFINES
39 *****************************************************************************************
40 */
41 #ifndef __NVDS_TAG_MGR_H__
42 #define __NVDS_TAG_MGR_H__
43
44 #define APP_PARAM_ID_RF_LPCLK_DRIFT 0xC003
45 #define APP_PARAM_ID_ACTIVITY_MOVE_CONFIG 0xC005
46 #define APP_PARAM_ID_RF_XO_OFFSET 0xC016
47
48 /// List of parameters identifiers
49 enum PARAM_ID
50 {
51 /// Definition of the tag associated to each parameters
52 /// Local Bd Address
53 PARAM_ID_BD_ADDRESS = 0x01,
54 /// Device Name
55 PARAM_ID_DEVICE_NAME = 0x02,
56 /// Low Power Clock Drift
57 PARAM_ID_LPCLK_DRIFT = 0x03,
58 /// Active Clock Drift
59 PARAM_ID_ACTCLK_DRIFT = 0x04,
60
61 /// Activity Move Configuration (enables/disables activity move for BLE connections and BT (e)SCO links)
62 PARAM_ID_ACTIVITY_MOVE_CONFIG = 0x05,
63
64 /// Enable/disable scanning for extended advertising PDUs
65 PARAM_ID_SCAN_EXT_ADV = 0x06,
66
67 /// Duration of the schedule reservation for long activities such as scan, inquiry, page, HDC advertising
68 PARAM_ID_SCHED_SCAN_DUR = 0x07,
69
70 /// Enable/disable channel assessment for BT and/or BLE
71 PARAM_ID_CH_ASS_EN = 0x08,
72
73 /// Default MD bit used by slave when sending a data packet on a BLE connection
74 PARAM_ID_DFT_SLAVE_MD = 0x09,
75
76 /// Tracer configuration
77 PARAM_ID_TRACER_CONFIG = 0x0A,
78
79 /// Diagport configuration
80 PARAM_ID_DIAG_BLE_HW = 0x0B,
81 PARAM_ID_DIAG_SW = 0x0C,
82 PARAM_ID_DIAG_DM_HW = 0x0D,
83 PARAM_ID_DIAG_PLF = 0x0E,
84
85 /// RSSI threshold tags
86 PARAM_ID_RSSI_HIGH_THR = 0x0F,
87 PARAM_ID_RSSI_LOW_THR = 0x10,
88 PARAM_ID_RSSI_INTERF_THR = 0x11,
89
90 /// RF BTIPT
91 PARAM_ID_RF_BTIPT_VERSION = 0x12,
92 PARAM_ID_RF_BTIPT_XO_SETTING = 0x13,
93 PARAM_ID_RF_BTIPT_GAIN_SETTING = 0x14,
94
95 /// LE Coded PHY 500 Kbps selection
96 PARAM_ID_LE_CODED_PHY_500 = 0x15,
97
98 /// Add by Goodix: RF XO offset
99 PARAM_ID_RF_XO_OFFSET = 0x16,
100
101 /// Add by Goodix: Advertising Packet Interval
102 PARAM_ID_GDX_ADV_INT = 0x17,
103 };
104
105 #endif //__NVDS_TAG_MGR_H__
106
PARAM_ID_BD_ADDRESS
@ PARAM_ID_BD_ADDRESS
Definition of the tag associated to each parameters Local Bd Address.
Definition: nvds_tag.h:53
PARAM_ID_DIAG_DM_HW
@ PARAM_ID_DIAG_DM_HW
Definition: nvds_tag.h:82
PARAM_ID_RSSI_INTERF_THR
@ PARAM_ID_RSSI_INTERF_THR
Definition: nvds_tag.h:88
PARAM_ID_RSSI_HIGH_THR
@ PARAM_ID_RSSI_HIGH_THR
RSSI threshold tags.
Definition: nvds_tag.h:86
PARAM_ID
PARAM_ID
List of parameters identifiers.
Definition: nvds_tag.h:50
PARAM_ID_SCHED_SCAN_DUR
@ PARAM_ID_SCHED_SCAN_DUR
Duration of the schedule reservation for long activities such as scan, inquiry, page,...
Definition: nvds_tag.h:68
PARAM_ID_RF_BTIPT_GAIN_SETTING
@ PARAM_ID_RF_BTIPT_GAIN_SETTING
Definition: nvds_tag.h:93
PARAM_ID_SCAN_EXT_ADV
@ PARAM_ID_SCAN_EXT_ADV
Enable/disable scanning for extended advertising PDUs.
Definition: nvds_tag.h:65
PARAM_ID_DIAG_SW
@ PARAM_ID_DIAG_SW
Definition: nvds_tag.h:81
PARAM_ID_ACTCLK_DRIFT
@ PARAM_ID_ACTCLK_DRIFT
Active Clock Drift.
Definition: nvds_tag.h:59
PARAM_ID_TRACER_CONFIG
@ PARAM_ID_TRACER_CONFIG
Tracer configuration.
Definition: nvds_tag.h:77
PARAM_ID_LPCLK_DRIFT
@ PARAM_ID_LPCLK_DRIFT
Low Power Clock Drift.
Definition: nvds_tag.h:57
PARAM_ID_LE_CODED_PHY_500
@ PARAM_ID_LE_CODED_PHY_500
LE Coded PHY 500 Kbps selection.
Definition: nvds_tag.h:96
PARAM_ID_GDX_ADV_INT
@ PARAM_ID_GDX_ADV_INT
Add by Goodix: Advertising Packet Interval.
Definition: nvds_tag.h:102
PARAM_ID_CH_ASS_EN
@ PARAM_ID_CH_ASS_EN
Enable/disable channel assessment for BT and/or BLE.
Definition: nvds_tag.h:71
PARAM_ID_DEVICE_NAME
@ PARAM_ID_DEVICE_NAME
Device Name.
Definition: nvds_tag.h:55
PARAM_ID_RF_BTIPT_VERSION
@ PARAM_ID_RF_BTIPT_VERSION
RF BTIPT.
Definition: nvds_tag.h:91
PARAM_ID_RSSI_LOW_THR
@ PARAM_ID_RSSI_LOW_THR
Definition: nvds_tag.h:87
PARAM_ID_DFT_SLAVE_MD
@ PARAM_ID_DFT_SLAVE_MD
Default MD bit used by slave when sending a data packet on a BLE connection.
Definition: nvds_tag.h:74
PARAM_ID_DIAG_BLE_HW
@ PARAM_ID_DIAG_BLE_HW
Diagport configuration.
Definition: nvds_tag.h:80
PARAM_ID_DIAG_PLF
@ PARAM_ID_DIAG_PLF
Definition: nvds_tag.h:83
PARAM_ID_RF_BTIPT_XO_SETTING
@ PARAM_ID_RF_BTIPT_XO_SETTING
Definition: nvds_tag.h:92
PARAM_ID_ACTIVITY_MOVE_CONFIG
@ PARAM_ID_ACTIVITY_MOVE_CONFIG
Activity Move Configuration (enables/disables activity move for BLE connections and BT (e)SCO links)
Definition: nvds_tag.h:62
PARAM_ID_RF_XO_OFFSET
@ PARAM_ID_RF_XO_OFFSET
Add by Goodix: RF XO offset.
Definition: nvds_tag.h:99