BLE-Stack APIs  3.00.01
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 #if !defined(CC26XX_R2)
48  #include <rf_patches/rf_patch_cpe_ble.h>
49  #include <rf_patches/rf_patch_rfe_ble.h>
50 #endif /* !CC26XX_R2 */
51 #include <ti/drivers/rf/RF.h>
52 
53 /*******************************************************************************
54  * MACROS
55  */
56 
63 #define TX_POUT( IB, GC, TC ) \
64  (uint16)((((TC) & 0xFF) << 8) | (((GC) & 0x03) << 6) | ((IB) & 0x3F))
65 
66 /*******************************************************************************
67  * CONSTANTS
68  */
69 
95 #define RF_FRONTEND_MODE_MASK 0x07
96 #define RF_FE_DIFFERENTIAL 0
97 #define RF_FE_SINGLE_ENDED_RFP 1
98 #define RF_FE_SINGLE_ENDED_RFN 2
99 #define RF_FE_ANT_DIVERSITY_RFP_FIRST 3
100 #define RF_FE_ANT_DIVERSITY_RFN_FIRST 4
101 #define RF_FE_SINGLE_ENDED_RFP_EXT_PINS 5
102 #define RF_FE_SINGLE_ENDED_RFN_EXT_PINS 6
103 
104 #define RF_BIAS_MODE_MASK 0x08
105 #define RF_FE_INT_BIAS (0<<3)
106 #define RF_FE_EXT_BIAS (1<<3)
107 
108 #if defined(CC2650_LAUNCHXL) || defined(CC2640R2_LAUNCHXL) || defined(CC2650DK_7ID)
109 
110 #define RF_FE_MODE_AND_BIAS (RF_FE_DIFFERENTIAL | RF_FE_EXT_BIAS)
111 #define RF_FE_IOD_NUM 3
112 #define RF_FE_IOD {NULL, NULL, NULL}
113 #define RF_FE_IOD_VAL {NULL, NULL, NULL}
114 #define RF_FE_SATURATION 0
115 #define RF_FE_SENSITIVITY 0
116 
117 
123 #define TX_POWER_5_DBM 5
124 #define TX_POWER_4_DBM 4
125 #define TX_POWER_3_DBM 3
126 #define TX_POWER_2_DBM 2
127 #define TX_POWER_1_DBM 1
128 #define TX_POWER_0_DBM 0
129 #define TX_POWER_MINUS_3_DBM -3
130 #define TX_POWER_MINUS_6_DBM -6
131 #define TX_POWER_MINUS_9_DBM -9
132 #define TX_POWER_MINUS_12_DBM -12
133 #define TX_POWER_MINUS_15_DBM -15
134 #define TX_POWER_MINUS_18_DBM -18
135 #define TX_POWER_MINUS_21_DBM -21
136 
138 #endif /* CC2650_LAUNCHXL || CC2640R2_LAUNCHXL || CC2650DK_7ID */
139 
142 /*******************************************************************************
143  * TYPEDEFS
144  */
145 
151 {
152  int8 dBm;
153  uint16 txPowerVal;
155 
157 {
158  ubTxPowerVal_t* pTxPowerVals;
161 
162 /*******************************************************************************
163  * LOCAL VARIABLES
164  */
165 
166 /*******************************************************************************
167  * GLOBAL VARIABLES
168  */
169 
171 extern const RF_Mode ubRfMode;
173 extern uint32 ubRfRegOverride[];
175 extern const ubTxPowerTable_t ubTxPowerTable;
177 extern const uint8 ubFeModeBias;
178 
181 /*********************************************************************
182  * FUNCTIONS
183  */
184 
185 #ifdef __cplusplus
186 }
187 #endif
188 
189 #endif /* URFC_H */
190  // end of Micro_BLE_Stack
PACKED_TYPEDEF_CONST_STRUCT
dBm
Definition: urfc.h:151
ubTxPowerVal_t
Tx Power Value.
Definition: urfc.h:154
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:153
const RF_Mode ubRfMode
RF Core patch.
uint8 numTxPowerVal
Number of Tx Power Values.
Definition: urfc.h:159
ubTxPowerTable_t
Tx Power Table.
Definition: urfc.h:160
Copyright 2017, Texas Instruments Incorporated