TI BLE-Stack for Bluetooth API Documentation  3.03.00.00
urfc.h
Go to the documentation of this file.
1 /******************************************************************************
2 
3  Group: WCS BTS
4  $Target Device: DEVICES $
5 
6  ******************************************************************************
7  $License: BSD3 2016 $
8  ******************************************************************************
9  $Release Name: PACKAGE NAME $
10  $Release Date: PACKAGE RELEASE DATE $
11  *****************************************************************************/
12 
35 #ifndef URFC_H
36 #define URFC_H
37 
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif
42 
43 /*******************************************************************************
44  * INCLUDES
45  */
46 #include <hal_types.h>
47 #include <rf_patches/rf_patch_rfe_ble.h>
48 #include <rf_patches/rf_patch_cpe_ble_cte_grx.h>
49 #include <rf_patches/rf_patch_mce_ble_cte.h>
50 #include <ti/drivers/rf/RF.h>
51 
52 /*******************************************************************************
53  * MACROS
54  */
55 
62 #define TX_POUT( IB, GC, TC ) \
63  (uint16)((((TC) & 0xFF) << 8) | (((GC) & 0x03) << 6) | ((IB) & 0x3F))
64 
65 /*******************************************************************************
66  * CONSTANTS
67  */
68 
94 #define RF_FRONTEND_MODE_MASK 0x07
95 #define RF_FE_DIFFERENTIAL 0
96 #define RF_FE_SINGLE_ENDED_RFP 1
97 #define RF_FE_SINGLE_ENDED_RFN 2
98 #define RF_FE_ANT_DIVERSITY_RFP_FIRST 3
99 #define RF_FE_ANT_DIVERSITY_RFN_FIRST 4
100 #define RF_FE_SINGLE_ENDED_RFP_EXT_PINS 5
101 #define RF_FE_SINGLE_ENDED_RFN_EXT_PINS 6
102 
103 #define RF_BIAS_MODE_MASK 0x08
104 #define RF_FE_INT_BIAS (0<<3)
105 #define RF_FE_EXT_BIAS (1<<3)
106 
107 #if defined(CC2650_LAUNCHXL) || defined(CC2640R2_LAUNCHXL) || defined(CC2650DK_7ID)
108 
109 #define RF_FE_MODE_AND_BIAS (RF_FE_DIFFERENTIAL | RF_FE_EXT_BIAS)
110 #define RF_FE_IOD_NUM 3
111 #define RF_FE_IOD {NULL, NULL, NULL}
112 #define RF_FE_IOD_VAL {NULL, NULL, NULL}
113 #define RF_FE_SATURATION 0
114 #define RF_FE_SENSITIVITY 0
115 
116 
122 #define TX_POWER_5_DBM 5
123 #define TX_POWER_4_DBM 4
124 #define TX_POWER_3_DBM 3
125 #define TX_POWER_2_DBM 2
126 #define TX_POWER_1_DBM 1
127 #define TX_POWER_0_DBM 0
128 #define TX_POWER_MINUS_3_DBM -3
129 #define TX_POWER_MINUS_6_DBM -6
130 #define TX_POWER_MINUS_9_DBM -9
131 #define TX_POWER_MINUS_12_DBM -12
132 #define TX_POWER_MINUS_15_DBM -15
133 #define TX_POWER_MINUS_18_DBM -18
134 #define TX_POWER_MINUS_21_DBM -21
135 
137 #endif /* CC2650_LAUNCHXL || CC2640R2_LAUNCHXL || CC2650DK_7ID */
138 
141 /*******************************************************************************
142  * TYPEDEFS
143  */
144 
150 {
151  int8 dBm;
152  uint16 txPowerVal;
154 
156 {
157  ubTxPowerVal_t* pTxPowerVals;
160 
161 /*******************************************************************************
162  * LOCAL VARIABLES
163  */
164 
165 /*******************************************************************************
166  * GLOBAL VARIABLES
167  */
168 
170 extern const RF_Mode ubRfMode;
172 extern uint32 ubRfRegOverride[];
174 extern const ubTxPowerTable_t ubTxPowerTable;
176 extern const uint8 ubFeModeBias;
177 
180 /*********************************************************************
181  * FUNCTIONS
182  */
183 
184 #ifdef __cplusplus
185 }
186 #endif
187 
188 #endif /* URFC_H */
189  // end of Micro_BLE_Stack
PACKED_TYPEDEF_CONST_STRUCT
dBm
Definition: urfc.h:150
ubTxPowerVal_t
Tx Power Value.
Definition: urfc.h:153
uint32 ubRfRegOverride[]
Overrides for CMD_RADIO_SETUP.
const uint8 ubFeModeBias
RF frontend mode bias.
const ubTxPowerTable_t ubTxPowerTable
TX Power table.
uint16 txPowerVal
Tx Power Value.
Definition: urfc.h:152
const RF_Mode ubRfMode
RF Core patch.
uint8 numTxPowerVal
Number of Tx Power Values.
Definition: urfc.h:158
ubTxPowerTable_t
Tx Power Table.
Definition: urfc.h:159
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale