radio_config_1Mbps.h 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. /*! @file radio_config.h
  2. * @brief This file contains the automatically generated
  3. * configurations.
  4. *
  5. * @n WDS GUI Version: 3.2.11.0
  6. * @n Device: Si4463 Rev.: C2
  7. *
  8. * @b COPYRIGHT
  9. * @n Silicon Laboratories Confidential
  10. * @n Copyright 2017 Silicon Laboratories, Inc.
  11. * @n http://www.silabs.com
  12. */
  13. #ifndef RADIO_CONFIG_H_
  14. #define RADIO_CONFIG_H_
  15. // USER DEFINED PARAMETERS
  16. // Define your own parameters here
  17. // INPUT DATA
  18. /*
  19. // Crys_freq(Hz): 30000000 Crys_tol(ppm): 10 IF_mode: 2 High_perf_Ch_Fil: 1 OSRtune: 0 Ch_Fil_Bw_AFC: 0 ANT_DIV: 0 PM_pattern: 0
  20. // MOD_type: 4 Rsymb(sps): 500000 Fdev(Hz): 83300 RXBW(Hz): 150000 Manchester: 0 AFC_en: 0 Rsymb_error: 0.0 Chip-Version: 2
  21. // RF Freq.(MHz): 433 API_TC: 29 fhst: 250000 inputBW: 0 BERT: 0 RAW_dout: 0 D_source: 0 Hi_pfm_div: 1
  22. // API_ARR_Det_en: 0 Fdev_error: 0 API_ETSI: 0
  23. //
  24. // # RX IF frequency is -468750 Hz
  25. // # WB filter 1 (BW = 915.70 kHz); NB-filter 1 (BW = 915.70 kHz)
  26. //
  27. // Modulation index: 0.333
  28. */
  29. // CONFIGURATION PARAMETERS
  30. #define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ 30000000L
  31. #define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER 0x00
  32. #define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH 0x40
  33. #define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP 0x03
  34. #define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET 0xF000
  35. #define RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD {0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, \
  36. 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, \
  37. 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, 0xC5, \
  38. 0xC5, 0xC5, 0xC5, 0xC5}
  39. #include "si446x_patch.h"
  40. // CONFIGURATION COMMANDS
  41. /*
  42. // Command: RF_POWER_UP
  43. // Description: Command to power-up the device and select the operational mode and functionality.
  44. */
  45. #define RF_POWER_UP 0x02, 0x81, 0x00, 0x01, 0xC9, 0xC3, 0x80
  46. /*
  47. // Command: RF_GPIO_PIN_CFG
  48. // Description: Configures the GPIO pins.
  49. */
  50. #define RF_GPIO_PIN_CFG 0x13, 0x20, 0x00, 0x21, 0x00, 0x00, 0x00, 0x00
  51. /*
  52. // Set properties: RF_GLOBAL_XO_TUNE_2
  53. // Number of properties: 2
  54. // Group ID: 0x00
  55. // Start ID: 0x00
  56. // Default values: 0x40, 0x00,
  57. // Descriptions:
  58. // GLOBAL_XO_TUNE - Configure the internal capacitor frequency tuning bank for the crystal oscillator.
  59. // GLOBAL_CLK_CFG - Clock configuration options.
  60. */
  61. #define RF_GLOBAL_XO_TUNE_2 0x11, 0x00, 0x02, 0x00, 0x52, 0x00
  62. /*
  63. // Set properties: RF_GLOBAL_CONFIG_1
  64. // Number of properties: 1
  65. // Group ID: 0x00
  66. // Start ID: 0x03
  67. // Default values: 0x20,
  68. // Descriptions:
  69. // GLOBAL_CONFIG - Global configuration settings.
  70. */
  71. #define RF_GLOBAL_CONFIG_1 0x11, 0x00, 0x01, 0x03, 0x20
  72. /*
  73. // Set properties: RF_INT_CTL_ENABLE_2
  74. // Number of properties: 2
  75. // Group ID: 0x01
  76. // Start ID: 0x00
  77. // Default values: 0x04, 0x00,
  78. // Descriptions:
  79. // INT_CTL_ENABLE - This property provides for global enabling of the three interrupt groups (Chip, Modem and Packet Handler) in order to generate HW interrupts at the NIRQ pin.
  80. // INT_CTL_PH_ENABLE - Enable individual interrupt sources within the Packet Handler Interrupt Group to generate a HW interrupt on the NIRQ output pin.
  81. */
  82. #define RF_INT_CTL_ENABLE_2 0x11, 0x01, 0x02, 0x00, 0x01, 0x38
  83. /*
  84. // Set properties: RF_FRR_CTL_A_MODE_4
  85. // Number of properties: 4
  86. // Group ID: 0x02
  87. // Start ID: 0x00
  88. // Default values: 0x01, 0x02, 0x09, 0x00,
  89. // Descriptions:
  90. // FRR_CTL_A_MODE - Fast Response Register A Configuration.
  91. // FRR_CTL_B_MODE - Fast Response Register B Configuration.
  92. // FRR_CTL_C_MODE - Fast Response Register C Configuration.
  93. // FRR_CTL_D_MODE - Fast Response Register D Configuration.
  94. */
  95. #define RF_FRR_CTL_A_MODE_4 0x11, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00
  96. /*
  97. // Set properties: RF_PREAMBLE_TX_LENGTH_9
  98. // Number of properties: 9
  99. // Group ID: 0x10
  100. // Start ID: 0x00
  101. // Default values: 0x08, 0x14, 0x00, 0x0F, 0x21, 0x00, 0x00, 0x00, 0x00,
  102. // Descriptions:
  103. // PREAMBLE_TX_LENGTH - Configure length of TX Preamble.
  104. // PREAMBLE_CONFIG_STD_1 - Configuration of reception of a packet with a Standard Preamble pattern.
  105. // PREAMBLE_CONFIG_NSTD - Configuration of transmission/reception of a packet with a Non-Standard Preamble pattern.
  106. // PREAMBLE_CONFIG_STD_2 - Configuration of timeout periods during reception of a packet with Standard Preamble pattern.
  107. // PREAMBLE_CONFIG - General configuration bits for the Preamble field.
  108. // PREAMBLE_PATTERN_31_24 - Configuration of the bit values describing a Non-Standard Preamble pattern.
  109. // PREAMBLE_PATTERN_23_16 - Configuration of the bit values describing a Non-Standard Preamble pattern.
  110. // PREAMBLE_PATTERN_15_8 - Configuration of the bit values describing a Non-Standard Preamble pattern.
  111. // PREAMBLE_PATTERN_7_0 - Configuration of the bit values describing a Non-Standard Preamble pattern.
  112. */
  113. #define RF_PREAMBLE_TX_LENGTH_9 0x11, 0x10, 0x09, 0x00, 0x30, 0x14, 0x00, 0x0F, 0x31, 0x00, 0x00, 0x00, 0x00
  114. /*
  115. // Set properties: RF_SYNC_CONFIG_6
  116. // Number of properties: 6
  117. // Group ID: 0x11
  118. // Start ID: 0x00
  119. // Default values: 0x01, 0x2D, 0xD4, 0x2D, 0xD4, 0x00,
  120. // Descriptions:
  121. // SYNC_CONFIG - Sync Word configuration bits.
  122. // SYNC_BITS_31_24 - Sync word.
  123. // SYNC_BITS_23_16 - Sync word.
  124. // SYNC_BITS_15_8 - Sync word.
  125. // SYNC_BITS_7_0 - Sync word.
  126. // SYNC_CONFIG2 - Sync Word configuration bits.
  127. */
  128. #define RF_SYNC_CONFIG_6 0x11, 0x11, 0x06, 0x00, 0x0B, 0xB4, 0x2B, 0x00, 0x00, 0x00
  129. /*
  130. // Set properties: RF_PKT_CRC_CONFIG_12
  131. // Number of properties: 12
  132. // Group ID: 0x12
  133. // Start ID: 0x00
  134. // Default values: 0x00, 0x01, 0x08, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x30,
  135. // Descriptions:
  136. // PKT_CRC_CONFIG - Select a CRC polynomial and seed.
  137. // PKT_WHT_POLY_15_8 - 16-bit polynomial value for the PN Generator (e.g., for Data Whitening)
  138. // PKT_WHT_POLY_7_0 - 16-bit polynomial value for the PN Generator (e.g., for Data Whitening)
  139. // PKT_WHT_SEED_15_8 - 16-bit seed value for the PN Generator (e.g., for Data Whitening)
  140. // PKT_WHT_SEED_7_0 - 16-bit seed value for the PN Generator (e.g., for Data Whitening)
  141. // PKT_WHT_BIT_NUM - Selects which bit of the LFSR (used to generate the PN / data whitening sequence) is used as the output bit for data scrambling.
  142. // PKT_CONFIG1 - General configuration bits for transmission or reception of a packet.
  143. // PKT_CONFIG2 - General packet configuration bits.
  144. // PKT_LEN - Configuration bits for reception of a variable length packet.
  145. // PKT_LEN_FIELD_SOURCE - Field number containing the received packet length byte(s).
  146. // PKT_LEN_ADJUST - Provides for adjustment/offset of the received packet length value (in order to accommodate a variety of methods of defining total packet length).
  147. // PKT_TX_THRESHOLD - TX FIFO almost empty threshold.
  148. */
  149. #define RF_PKT_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x00, 0x04, 0x00, 0x30, 0xFF, 0xFF, 0x20, 0x22, 0x00, 0x00, 0x00, 0x00, 0x30
  150. /*
  151. // Set properties: RF_PKT_RX_THRESHOLD_12
  152. // Number of properties: 12
  153. // Group ID: 0x12
  154. // Start ID: 0x0C
  155. // Default values: 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  156. // Descriptions:
  157. // PKT_RX_THRESHOLD - RX FIFO Almost Full threshold.
  158. // PKT_FIELD_1_LENGTH_12_8 - Unsigned 13-bit Field 1 length value.
  159. // PKT_FIELD_1_LENGTH_7_0 - Unsigned 13-bit Field 1 length value.
  160. // PKT_FIELD_1_CONFIG - General data processing and packet configuration bits for Field 1.
  161. // PKT_FIELD_1_CRC_CONFIG - Configuration of CRC control bits across Field 1.
  162. // PKT_FIELD_2_LENGTH_12_8 - Unsigned 13-bit Field 2 length value.
  163. // PKT_FIELD_2_LENGTH_7_0 - Unsigned 13-bit Field 2 length value.
  164. // PKT_FIELD_2_CONFIG - General data processing and packet configuration bits for Field 2.
  165. // PKT_FIELD_2_CRC_CONFIG - Configuration of CRC control bits across Field 2.
  166. // PKT_FIELD_3_LENGTH_12_8 - Unsigned 13-bit Field 3 length value.
  167. // PKT_FIELD_3_LENGTH_7_0 - Unsigned 13-bit Field 3 length value.
  168. // PKT_FIELD_3_CONFIG - General data processing and packet configuration bits for Field 3.
  169. */
  170. #define RF_PKT_RX_THRESHOLD_12 0x11, 0x12, 0x0C, 0x0C, 0x30, 0x00, 0x40, 0x14, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  171. /*
  172. // Set properties: RF_PKT_FIELD_3_CRC_CONFIG_12
  173. // Number of properties: 12
  174. // Group ID: 0x12
  175. // Start ID: 0x18
  176. // Default values: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  177. // Descriptions:
  178. // PKT_FIELD_3_CRC_CONFIG - Configuration of CRC control bits across Field 3.
  179. // PKT_FIELD_4_LENGTH_12_8 - Unsigned 13-bit Field 4 length value.
  180. // PKT_FIELD_4_LENGTH_7_0 - Unsigned 13-bit Field 4 length value.
  181. // PKT_FIELD_4_CONFIG - General data processing and packet configuration bits for Field 4.
  182. // PKT_FIELD_4_CRC_CONFIG - Configuration of CRC control bits across Field 4.
  183. // PKT_FIELD_5_LENGTH_12_8 - Unsigned 13-bit Field 5 length value.
  184. // PKT_FIELD_5_LENGTH_7_0 - Unsigned 13-bit Field 5 length value.
  185. // PKT_FIELD_5_CONFIG - General data processing and packet configuration bits for Field 5.
  186. // PKT_FIELD_5_CRC_CONFIG - Configuration of CRC control bits across Field 5.
  187. // PKT_RX_FIELD_1_LENGTH_12_8 - Unsigned 13-bit RX Field 1 length value.
  188. // PKT_RX_FIELD_1_LENGTH_7_0 - Unsigned 13-bit RX Field 1 length value.
  189. // PKT_RX_FIELD_1_CONFIG - General data processing and packet configuration bits for RX Field 1.
  190. */
  191. #define RF_PKT_FIELD_3_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  192. /*
  193. // Set properties: RF_PKT_RX_FIELD_1_CRC_CONFIG_12
  194. // Number of properties: 12
  195. // Group ID: 0x12
  196. // Start ID: 0x24
  197. // Default values: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  198. // Descriptions:
  199. // PKT_RX_FIELD_1_CRC_CONFIG - Configuration of CRC control bits across RX Field 1.
  200. // PKT_RX_FIELD_2_LENGTH_12_8 - Unsigned 13-bit RX Field 2 length value.
  201. // PKT_RX_FIELD_2_LENGTH_7_0 - Unsigned 13-bit RX Field 2 length value.
  202. // PKT_RX_FIELD_2_CONFIG - General data processing and packet configuration bits for RX Field 2.
  203. // PKT_RX_FIELD_2_CRC_CONFIG - Configuration of CRC control bits across RX Field 2.
  204. // PKT_RX_FIELD_3_LENGTH_12_8 - Unsigned 13-bit RX Field 3 length value.
  205. // PKT_RX_FIELD_3_LENGTH_7_0 - Unsigned 13-bit RX Field 3 length value.
  206. // PKT_RX_FIELD_3_CONFIG - General data processing and packet configuration bits for RX Field 3.
  207. // PKT_RX_FIELD_3_CRC_CONFIG - Configuration of CRC control bits across RX Field 3.
  208. // PKT_RX_FIELD_4_LENGTH_12_8 - Unsigned 13-bit RX Field 4 length value.
  209. // PKT_RX_FIELD_4_LENGTH_7_0 - Unsigned 13-bit RX Field 4 length value.
  210. // PKT_RX_FIELD_4_CONFIG - General data processing and packet configuration bits for RX Field 4.
  211. */
  212. #define RF_PKT_RX_FIELD_1_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  213. /*
  214. // Set properties: RF_PKT_RX_FIELD_4_CRC_CONFIG_5
  215. // Number of properties: 5
  216. // Group ID: 0x12
  217. // Start ID: 0x30
  218. // Default values: 0x00, 0x00, 0x00, 0x00, 0x00,
  219. // Descriptions:
  220. // PKT_RX_FIELD_4_CRC_CONFIG - Configuration of CRC control bits across RX Field 4.
  221. // PKT_RX_FIELD_5_LENGTH_12_8 - Unsigned 13-bit RX Field 5 length value.
  222. // PKT_RX_FIELD_5_LENGTH_7_0 - Unsigned 13-bit RX Field 5 length value.
  223. // PKT_RX_FIELD_5_CONFIG - General data processing and packet configuration bits for RX Field 5.
  224. // PKT_RX_FIELD_5_CRC_CONFIG - Configuration of CRC control bits across RX Field 5.
  225. */
  226. #define RF_PKT_RX_FIELD_4_CRC_CONFIG_5 0x11, 0x12, 0x05, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00
  227. /*
  228. // Set properties: RF_PKT_CRC_SEED_31_24_4
  229. // Number of properties: 4
  230. // Group ID: 0x12
  231. // Start ID: 0x36
  232. // Default values: 0x00, 0x00, 0x00, 0x00,
  233. // Descriptions:
  234. // PKT_CRC_SEED_31_24 - 32-bit seed value for the 32-bit CRC engine
  235. // PKT_CRC_SEED_23_16 - 32-bit seed value for the 32-bit CRC engine
  236. // PKT_CRC_SEED_15_8 - 32-bit seed value for the 32-bit CRC engine
  237. // PKT_CRC_SEED_7_0 - 32-bit seed value for the 32-bit CRC engine
  238. */
  239. #define RF_PKT_CRC_SEED_31_24_4 0x11, 0x12, 0x04, 0x36, 0x00, 0x00, 0x00, 0x00
  240. /*
  241. // Set properties: RF_MODEM_MOD_TYPE_12
  242. // Number of properties: 12
  243. // Group ID: 0x20
  244. // Start ID: 0x00
  245. // Default values: 0x02, 0x80, 0x07, 0x0F, 0x42, 0x40, 0x01, 0xC9, 0xC3, 0x80, 0x00, 0x06,
  246. // Descriptions:
  247. // MODEM_MOD_TYPE - Selects the type of modulation. In TX mode, additionally selects the source of the modulation.
  248. // MODEM_MAP_CONTROL - Controls polarity and mapping of transmit and receive bits.
  249. // MODEM_DSM_CTRL - Miscellaneous control bits for the Delta-Sigma Modulator (DSM) in the PLL Synthesizer.
  250. // MODEM_DATA_RATE_2 - Unsigned 24-bit value used to determine the TX data rate
  251. // MODEM_DATA_RATE_1 - Unsigned 24-bit value used to determine the TX data rate
  252. // MODEM_DATA_RATE_0 - Unsigned 24-bit value used to determine the TX data rate
  253. // MODEM_TX_NCO_MODE_3 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
  254. // MODEM_TX_NCO_MODE_2 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
  255. // MODEM_TX_NCO_MODE_1 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
  256. // MODEM_TX_NCO_MODE_0 - TX Gaussian filter oversampling ratio and Byte 3 of unsigned 26-bit TX Numerically Controlled Oscillator (NCO) modulus.
  257. // MODEM_FREQ_DEV_2 - 17-bit unsigned TX frequency deviation word.
  258. // MODEM_FREQ_DEV_1 - 17-bit unsigned TX frequency deviation word.
  259. */
  260. #define RF_MODEM_MOD_TYPE_12 0x11, 0x20, 0x0C, 0x00, 0x04, 0x00, 0x07, 0x4C, 0x4B, 0x40, 0x01, 0xC9, 0xC3, 0x80, 0x00, 0x44
  261. /*
  262. // Set properties: RF_MODEM_FREQ_DEV_0_1
  263. // Number of properties: 1
  264. // Group ID: 0x20
  265. // Start ID: 0x0C
  266. // Default values: 0xD3,
  267. // Descriptions:
  268. // MODEM_FREQ_DEV_0 - 17-bit unsigned TX frequency deviation word.
  269. */
  270. #define RF_MODEM_FREQ_DEV_0_1 0x11, 0x20, 0x01, 0x0C, 0x3D
  271. /*
  272. // Set properties: RF_MODEM_TX_RAMP_DELAY_12
  273. // Number of properties: 12
  274. // Group ID: 0x20
  275. // Start ID: 0x18
  276. // Default values: 0x01, 0x00, 0x08, 0x03, 0xC0, 0x00, 0x10, 0x20, 0x00, 0x00, 0x00, 0x4B,
  277. // Descriptions:
  278. // MODEM_TX_RAMP_DELAY - TX ramp-down delay setting.
  279. // MODEM_MDM_CTRL - MDM control.
  280. // MODEM_IF_CONTROL - Selects Fixed-IF, Scaled-IF, or Zero-IF mode of RX Modem operation.
  281. // MODEM_IF_FREQ_2 - the IF frequency setting (an 18-bit signed number).
  282. // MODEM_IF_FREQ_1 - the IF frequency setting (an 18-bit signed number).
  283. // MODEM_IF_FREQ_0 - the IF frequency setting (an 18-bit signed number).
  284. // MODEM_DECIMATION_CFG1 - Specifies three decimator ratios for the Cascaded Integrator Comb (CIC) filter.
  285. // MODEM_DECIMATION_CFG0 - Specifies miscellaneous parameters and decimator ratios for the Cascaded Integrator Comb (CIC) filter.
  286. // MODEM_DECIMATION_CFG2 - Specifies miscellaneous decimator filter selections.
  287. // MODEM_IFPKD_THRESHOLDS -
  288. // MODEM_BCR_OSR_1 - RX BCR/Slicer oversampling rate (12-bit unsigned number).
  289. // MODEM_BCR_OSR_0 - RX BCR/Slicer oversampling rate (12-bit unsigned number).
  290. */
  291. #define RF_MODEM_TX_RAMP_DELAY_12 0x11, 0x20, 0x0C, 0x18, 0x04, 0x00, 0x08, 0x03, 0x80, 0x00, 0x00, 0x30, 0x00, 0xE8, 0x00, 0x3C
  292. /*
  293. // Set properties: RF_MODEM_BCR_NCO_OFFSET_2_12
  294. // Number of properties: 12
  295. // Group ID: 0x20
  296. // Start ID: 0x24
  297. // Default values: 0x06, 0xD3, 0xA0, 0x06, 0xD3, 0x02, 0xC0, 0x00, 0x00, 0x23, 0x83, 0x69,
  298. // Descriptions:
  299. // MODEM_BCR_NCO_OFFSET_2 - RX BCR NCO offset value (an unsigned 22-bit number).
  300. // MODEM_BCR_NCO_OFFSET_1 - RX BCR NCO offset value (an unsigned 22-bit number).
  301. // MODEM_BCR_NCO_OFFSET_0 - RX BCR NCO offset value (an unsigned 22-bit number).
  302. // MODEM_BCR_GAIN_1 - The unsigned 11-bit RX BCR loop gain value.
  303. // MODEM_BCR_GAIN_0 - The unsigned 11-bit RX BCR loop gain value.
  304. // MODEM_BCR_GEAR - RX BCR loop gear control.
  305. // MODEM_BCR_MISC1 - Miscellaneous control bits for the RX BCR loop.
  306. // MODEM_BCR_MISC0 - Miscellaneous RX BCR loop controls.
  307. // MODEM_AFC_GEAR - RX AFC loop gear control.
  308. // MODEM_AFC_WAIT - RX AFC loop wait time control.
  309. // MODEM_AFC_GAIN_1 - Sets the gain of the PLL-based AFC acquisition loop, and provides miscellaneous control bits for AFC functionality.
  310. // MODEM_AFC_GAIN_0 - Sets the gain of the PLL-based AFC acquisition loop, and provides miscellaneous control bits for AFC functionality.
  311. */
  312. #define RF_MODEM_BCR_NCO_OFFSET_2_12 0x11, 0x20, 0x0C, 0x24, 0x08, 0x88, 0x89, 0x07, 0xFF, 0x02, 0x02, 0x00, 0x00, 0x23, 0x8F, 0xFF
  313. /*
  314. // Set properties: RF_MODEM_AFC_LIMITER_1_3
  315. // Number of properties: 3
  316. // Group ID: 0x20
  317. // Start ID: 0x30
  318. // Default values: 0x00, 0x40, 0xA0,
  319. // Descriptions:
  320. // MODEM_AFC_LIMITER_1 - Set the AFC limiter value.
  321. // MODEM_AFC_LIMITER_0 - Set the AFC limiter value.
  322. // MODEM_AFC_MISC - Specifies miscellaneous AFC control bits.
  323. */
  324. #define RF_MODEM_AFC_LIMITER_1_3 0x11, 0x20, 0x03, 0x30, 0x01, 0x7C, 0xA0
  325. /*
  326. // Set properties: RF_MODEM_AGC_CONTROL_1
  327. // Number of properties: 1
  328. // Group ID: 0x20
  329. // Start ID: 0x35
  330. // Default values: 0xE0,
  331. // Descriptions:
  332. // MODEM_AGC_CONTROL - Miscellaneous control bits for the Automatic Gain Control (AGC) function in the RX Chain.
  333. */
  334. #define RF_MODEM_AGC_CONTROL_1 0x11, 0x20, 0x01, 0x35, 0xE2
  335. /*
  336. // Set properties: RF_MODEM_AGC_WINDOW_SIZE_12
  337. // Number of properties: 12
  338. // Group ID: 0x20
  339. // Start ID: 0x38
  340. // Default values: 0x11, 0x10, 0x10, 0x0B, 0x1C, 0x40, 0x00, 0x00, 0x2B, 0x0C, 0xA4, 0x03,
  341. // Descriptions:
  342. // MODEM_AGC_WINDOW_SIZE - Specifies the size of the measurement and settling windows for the AGC algorithm.
  343. // MODEM_AGC_RFPD_DECAY - Sets the decay time of the RF peak detectors.
  344. // MODEM_AGC_IFPD_DECAY - Sets the decay time of the IF peak detectors.
  345. // MODEM_FSK4_GAIN1 - Specifies the gain factor of the secondary branch in 4(G)FSK ISI-suppression.
  346. // MODEM_FSK4_GAIN0 - Specifies the gain factor of the primary branch in 4(G)FSK ISI-suppression.
  347. // MODEM_FSK4_TH1 - 16 bit 4(G)FSK slicer threshold.
  348. // MODEM_FSK4_TH0 - 16 bit 4(G)FSK slicer threshold.
  349. // MODEM_FSK4_MAP - 4(G)FSK symbol mapping code.
  350. // MODEM_OOK_PDTC - Configures the attack and decay times of the OOK Peak Detector.
  351. // MODEM_OOK_BLOPK - Configures the slicing reference level of the OOK Peak Detector.
  352. // MODEM_OOK_CNT1 - OOK control.
  353. // MODEM_OOK_MISC - Selects the detector(s) used for demodulation of an OOK signal, or for demodulation of a (G)FSK signal when using the asynchronous demodulator.
  354. */
  355. #define RF_MODEM_AGC_WINDOW_SIZE_12 0x11, 0x20, 0x0C, 0x38, 0x22, 0x07, 0x07, 0x00, 0x02, 0x15, 0x53, 0x00, 0x27, 0x0C, 0xA4, 0x23
  356. /*
  357. // Set properties: RF_MODEM_RAW_CONTROL_10
  358. // Number of properties: 10
  359. // Group ID: 0x20
  360. // Start ID: 0x45
  361. // Default values: 0x02, 0x00, 0xA3, 0x02, 0x80, 0xFF, 0x0C, 0x01, 0x00, 0x40,
  362. // Descriptions:
  363. // MODEM_RAW_CONTROL - Defines gain and enable controls for raw / nonstandard mode.
  364. // MODEM_RAW_EYE_1 - 11 bit eye-open detector threshold.
  365. // MODEM_RAW_EYE_0 - 11 bit eye-open detector threshold.
  366. // MODEM_ANT_DIV_MODE - Antenna diversity mode settings.
  367. // MODEM_ANT_DIV_CONTROL - Specifies controls for the Antenna Diversity algorithm.
  368. // MODEM_RSSI_THRESH - Configures the RSSI threshold.
  369. // MODEM_RSSI_JUMP_THRESH - Configures the RSSI Jump Detection threshold.
  370. // MODEM_RSSI_CONTROL - Control of the averaging modes and latching time for reporting RSSI value(s).
  371. // MODEM_RSSI_CONTROL2 - RSSI Jump Detection control.
  372. // MODEM_RSSI_COMP - RSSI compensation value.
  373. */
  374. #define RF_MODEM_RAW_CONTROL_10 0x11, 0x20, 0x0A, 0x45, 0x03, 0x02, 0x14, 0x01, 0x00, 0xFF, 0x08, 0x00, 0x18, 0x40
  375. /*
  376. // Set properties: RF_MODEM_RAW_SEARCH2_2
  377. // Number of properties: 2
  378. // Group ID: 0x20
  379. // Start ID: 0x50
  380. // Default values: 0x00, 0x08,
  381. // Descriptions:
  382. // MODEM_RAW_SEARCH2 - Defines and controls the search period length for the Moving Average and Min-Max detectors.
  383. // MODEM_CLKGEN_BAND - Select PLL Synthesizer output divider ratio as a function of frequency band.
  384. */
  385. #define RF_MODEM_RAW_SEARCH2_2 0x11, 0x20, 0x02, 0x50, 0x84, 0x0A
  386. /*
  387. // Set properties: RF_MODEM_SPIKE_DET_2
  388. // Number of properties: 2
  389. // Group ID: 0x20
  390. // Start ID: 0x54
  391. // Default values: 0x00, 0x00,
  392. // Descriptions:
  393. // MODEM_SPIKE_DET - Configures the threshold for (G)FSK Spike Detection.
  394. // MODEM_ONE_SHOT_AFC - Configures parameters for th e One Shot AFC function and for BCR timing/acquisition.
  395. */
  396. #define RF_MODEM_SPIKE_DET_2 0x11, 0x20, 0x02, 0x54, 0x07, 0x07
  397. /*
  398. // Set properties: RF_MODEM_RSSI_MUTE_1
  399. // Number of properties: 1
  400. // Group ID: 0x20
  401. // Start ID: 0x57
  402. // Default values: 0x00,
  403. // Descriptions:
  404. // MODEM_RSSI_MUTE - Configures muting of the RSSI to avoid false RSSI interrupts.
  405. */
  406. #define RF_MODEM_RSSI_MUTE_1 0x11, 0x20, 0x01, 0x57, 0x00
  407. /*
  408. // Set properties: RF_MODEM_DSA_CTRL1_5
  409. // Number of properties: 5
  410. // Group ID: 0x20
  411. // Start ID: 0x5B
  412. // Default values: 0x00, 0x00, 0x00, 0x00, 0x00,
  413. // Descriptions:
  414. // MODEM_DSA_CTRL1 - Configures parameters for the Signal Arrival Detection circuit block and algorithm.
  415. // MODEM_DSA_CTRL2 - Configures parameters for the Signal Arrival Detection circuit block and algorithm.
  416. // MODEM_DSA_QUAL - Configures parameters for the Eye Opening qualification m ethod of the Signal Arrival Detection algorithm.
  417. // MODEM_DSA_RSSI - Signal Arrival Detect RSSI Qualifier Config
  418. // MODEM_DSA_MISC - Miscellaneous detection of signal arrival bits.
  419. */
  420. #define RF_MODEM_DSA_CTRL1_5 0x11, 0x20, 0x05, 0x5B, 0x40, 0x04, 0x10, 0x78, 0x20
  421. /*
  422. // Set properties: RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12
  423. // Number of properties: 12
  424. // Group ID: 0x21
  425. // Start ID: 0x00
  426. // Default values: 0xFF, 0xBA, 0x0F, 0x51, 0xCF, 0xA9, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01,
  427. // Descriptions:
  428. // MODEM_CHFLT_RX1_CHFLT_COE13_7_0 - Filter coefficients for the first set of RX filter coefficients.
  429. // MODEM_CHFLT_RX1_CHFLT_COE12_7_0 - Filter coefficients for the first set of RX filter coefficients.
  430. // MODEM_CHFLT_RX1_CHFLT_COE11_7_0 - Filter coefficients for the first set of RX filter coefficients.
  431. // MODEM_CHFLT_RX1_CHFLT_COE10_7_0 - Filter coefficients for the first set of RX filter coefficients.
  432. // MODEM_CHFLT_RX1_CHFLT_COE9_7_0 - Filter coefficients for the first set of RX filter coefficients.
  433. // MODEM_CHFLT_RX1_CHFLT_COE8_7_0 - Filter coefficients for the first set of RX filter coefficients.
  434. // MODEM_CHFLT_RX1_CHFLT_COE7_7_0 - Filter coefficients for the first set of RX filter coefficients.
  435. // MODEM_CHFLT_RX1_CHFLT_COE6_7_0 - Filter coefficients for the first set of RX filter coefficients.
  436. // MODEM_CHFLT_RX1_CHFLT_COE5_7_0 - Filter coefficients for the first set of RX filter coefficients.
  437. // MODEM_CHFLT_RX1_CHFLT_COE4_7_0 - Filter coefficients for the first set of RX filter coefficients.
  438. // MODEM_CHFLT_RX1_CHFLT_COE3_7_0 - Filter coefficients for the first set of RX filter coefficients.
  439. // MODEM_CHFLT_RX1_CHFLT_COE2_7_0 - Filter coefficients for the first set of RX filter coefficients.
  440. */
  441. #define RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12 0x11, 0x21, 0x0C, 0x00, 0xFF, 0xBA, 0x0F, 0x51, 0xCF, 0xA9, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01
  442. /*
  443. // Set properties: RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12
  444. // Number of properties: 12
  445. // Group ID: 0x21
  446. // Start ID: 0x0C
  447. // Default values: 0xFC, 0xFD, 0x15, 0xFF, 0x00, 0x0F, 0xFF, 0xC4, 0x30, 0x7F, 0xF5, 0xB5,
  448. // Descriptions:
  449. // MODEM_CHFLT_RX1_CHFLT_COE1_7_0 - Filter coefficients for the first set of RX filter coefficients.
  450. // MODEM_CHFLT_RX1_CHFLT_COE0_7_0 - Filter coefficients for the first set of RX filter coefficients.
  451. // MODEM_CHFLT_RX1_CHFLT_COEM0 - Filter coefficients for the first set of RX filter coefficients.
  452. // MODEM_CHFLT_RX1_CHFLT_COEM1 - Filter coefficients for the first set of RX filter coefficients.
  453. // MODEM_CHFLT_RX1_CHFLT_COEM2 - Filter coefficients for the first set of RX filter coefficients.
  454. // MODEM_CHFLT_RX1_CHFLT_COEM3 - Filter coefficients for the first set of RX filter coefficients.
  455. // MODEM_CHFLT_RX2_CHFLT_COE13_7_0 - Filter coefficients for the second set of RX filter coefficients.
  456. // MODEM_CHFLT_RX2_CHFLT_COE12_7_0 - Filter coefficients for the second set of RX filter coefficients.
  457. // MODEM_CHFLT_RX2_CHFLT_COE11_7_0 - Filter coefficients for the second set of RX filter coefficients.
  458. // MODEM_CHFLT_RX2_CHFLT_COE10_7_0 - Filter coefficients for the second set of RX filter coefficients.
  459. // MODEM_CHFLT_RX2_CHFLT_COE9_7_0 - Filter coefficients for the second set of RX filter coefficients.
  460. // MODEM_CHFLT_RX2_CHFLT_COE8_7_0 - Filter coefficients for the second set of RX filter coefficients.
  461. */
  462. #define RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12 0x11, 0x21, 0x0C, 0x0C, 0xFC, 0xFD, 0x15, 0xFF, 0x00, 0x0F, 0xFF, 0xBA, 0x0F, 0x51, 0xCF, 0xA9
  463. /*
  464. // Set properties: RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12
  465. // Number of properties: 12
  466. // Group ID: 0x21
  467. // Start ID: 0x18
  468. // Default values: 0xB8, 0xDE, 0x05, 0x17, 0x16, 0x0C, 0x03, 0x00, 0x15, 0xFF, 0x00, 0x00,
  469. // Descriptions:
  470. // MODEM_CHFLT_RX2_CHFLT_COE7_7_0 - Filter coefficients for the second set of RX filter coefficients.
  471. // MODEM_CHFLT_RX2_CHFLT_COE6_7_0 - Filter coefficients for the second set of RX filter coefficients.
  472. // MODEM_CHFLT_RX2_CHFLT_COE5_7_0 - Filter coefficients for the second set of RX filter coefficients.
  473. // MODEM_CHFLT_RX2_CHFLT_COE4_7_0 - Filter coefficients for the second set of RX filter coefficients.
  474. // MODEM_CHFLT_RX2_CHFLT_COE3_7_0 - Filter coefficients for the second set of RX filter coefficients.
  475. // MODEM_CHFLT_RX2_CHFLT_COE2_7_0 - Filter coefficients for the second set of RX filter coefficients.
  476. // MODEM_CHFLT_RX2_CHFLT_COE1_7_0 - Filter coefficients for the second set of RX filter coefficients.
  477. // MODEM_CHFLT_RX2_CHFLT_COE0_7_0 - Filter coefficients for the second set of RX filter coefficients.
  478. // MODEM_CHFLT_RX2_CHFLT_COEM0 - Filter coefficients for the second set of RX filter coefficients.
  479. // MODEM_CHFLT_RX2_CHFLT_COEM1 - Filter coefficients for the second set of RX filter coefficients.
  480. // MODEM_CHFLT_RX2_CHFLT_COEM2 - Filter coefficients for the second set of RX filter coefficients.
  481. // MODEM_CHFLT_RX2_CHFLT_COEM3 - Filter coefficients for the second set of RX filter coefficients.
  482. */
  483. #define RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12 0x11, 0x21, 0x0C, 0x18, 0xC9, 0xFC, 0x1B, 0x1E, 0x0F, 0x01, 0xFC, 0xFD, 0x15, 0xFF, 0x00, 0x0F
  484. /*
  485. // Set properties: RF_PA_MODE_4
  486. // Number of properties: 4
  487. // Group ID: 0x22
  488. // Start ID: 0x00
  489. // Default values: 0x08, 0x7F, 0x00, 0x5D,
  490. // Descriptions:
  491. // PA_MODE - Selects the PA operating mode, and selects resolution of PA power adjustment (i.e., step size).
  492. // PA_PWR_LVL - Configuration of PA output power level.
  493. // PA_BIAS_CLKDUTY - Configuration of the PA Bias and duty cycle of the TX clock source.
  494. // PA_TC - Configuration of PA ramping parameters.
  495. */
  496. #define RF_PA_MODE_4 0x11, 0x22, 0x04, 0x00, 0x08, 0x7F, 0x00, 0x5D
  497. /*
  498. // Set properties: RF_SYNTH_PFDCP_CPFF_7
  499. // Number of properties: 7
  500. // Group ID: 0x23
  501. // Start ID: 0x00
  502. // Default values: 0x2C, 0x0E, 0x0B, 0x04, 0x0C, 0x73, 0x03,
  503. // Descriptions:
  504. // SYNTH_PFDCP_CPFF - Feed forward charge pump current selection.
  505. // SYNTH_PFDCP_CPINT - Integration charge pump current selection.
  506. // SYNTH_VCO_KV - Gain scaling factors (Kv) for the VCO tuning varactors on both the integrated-path and feed forward path.
  507. // SYNTH_LPFILT3 - Value of resistor R2 in feed-forward path of loop filter.
  508. // SYNTH_LPFILT2 - Value of capacitor C2 in feed-forward path of loop filter.
  509. // SYNTH_LPFILT1 - Value of capacitors C1 and C3 in feed-forward path of loop filter.
  510. // SYNTH_LPFILT0 - Bias current of the active amplifier in the feed-forward loop filter.
  511. */
  512. #define RF_SYNTH_PFDCP_CPFF_7 0x11, 0x23, 0x07, 0x00, 0x01, 0x05, 0x0B, 0x05, 0x02, 0x00, 0x03
  513. /*
  514. // Set properties: RF_MATCH_VALUE_1_12
  515. // Number of properties: 12
  516. // Group ID: 0x30
  517. // Start ID: 0x00
  518. // Default values: 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  519. // Descriptions:
  520. // MATCH_VALUE_1 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 1 value with the received Match 1 byte.
  521. // MATCH_MASK_1 - Mask value to be logically AND-ed (bit-wise) with the Match 1 byte.
  522. // MATCH_CTRL_1 - Enable for Packet Match functionality, and configuration of Match Byte 1.
  523. // MATCH_VALUE_2 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 2 value with the received Match 2 byte.
  524. // MATCH_MASK_2 - Mask value to be logically AND-ed (bit-wise) with the Match 2 byte.
  525. // MATCH_CTRL_2 - Configuration of Match Byte 2.
  526. // MATCH_VALUE_3 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 3 value with the received Match 3 byte.
  527. // MATCH_MASK_3 - Mask value to be logically AND-ed (bit-wise) with the Match 3 byte.
  528. // MATCH_CTRL_3 - Configuration of Match Byte 3.
  529. // MATCH_VALUE_4 - Match value to be compared with the result of logically AND-ing (bit-wise) the Mask 4 value with the received Match 4 byte.
  530. // MATCH_MASK_4 - Mask value to be logically AND-ed (bit-wise) with the Match 4 byte.
  531. // MATCH_CTRL_4 - Configuration of Match Byte 4.
  532. */
  533. #define RF_MATCH_VALUE_1_12 0x11, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
  534. /*
  535. // Set properties: RF_FREQ_CONTROL_INTE_8
  536. // Number of properties: 8
  537. // Group ID: 0x40
  538. // Start ID: 0x00
  539. // Default values: 0x3C, 0x08, 0x00, 0x00, 0x00, 0x00, 0x20, 0xFF,
  540. // Descriptions:
  541. // FREQ_CONTROL_INTE - Frac-N PLL Synthesizer integer divide number.
  542. // FREQ_CONTROL_FRAC_2 - Frac-N PLL fraction number.
  543. // FREQ_CONTROL_FRAC_1 - Frac-N PLL fraction number.
  544. // FREQ_CONTROL_FRAC_0 - Frac-N PLL fraction number.
  545. // FREQ_CONTROL_CHANNEL_STEP_SIZE_1 - EZ Frequency Programming channel step size.
  546. // FREQ_CONTROL_CHANNEL_STEP_SIZE_0 - EZ Frequency Programming channel step size.
  547. // FREQ_CONTROL_W_SIZE - Set window gating period (in number of crystal reference clock cycles) for counting VCO frequency during calibration.
  548. // FREQ_CONTROL_VCOCNT_RX_ADJ - Adjust target count for VCO calibration in RX mode.
  549. */
  550. #define RF_FREQ_CONTROL_INTE_8 0x11, 0x40, 0x08, 0x00, 0x38, 0x0D, 0xDD, 0xDD, 0x44, 0x44, 0x20, 0xFE
  551. // AUTOMATICALLY GENERATED CODE!
  552. // DO NOT EDIT/MODIFY BELOW THIS LINE!
  553. // --------------------------------------------
  554. #ifndef FIRMWARE_LOAD_COMPILE
  555. #define RADIO_CONFIGURATION_DATA_ARRAY { \
  556. SI446X_PATCH_CMDS, \
  557. 0x07, RF_POWER_UP, \
  558. 0x08, RF_GPIO_PIN_CFG, \
  559. 0x06, RF_GLOBAL_XO_TUNE_2, \
  560. 0x05, RF_GLOBAL_CONFIG_1, \
  561. 0x06, RF_INT_CTL_ENABLE_2, \
  562. 0x08, RF_FRR_CTL_A_MODE_4, \
  563. 0x0D, RF_PREAMBLE_TX_LENGTH_9, \
  564. 0x0A, RF_SYNC_CONFIG_6, \
  565. 0x10, RF_PKT_CRC_CONFIG_12, \
  566. 0x10, RF_PKT_RX_THRESHOLD_12, \
  567. 0x10, RF_PKT_FIELD_3_CRC_CONFIG_12, \
  568. 0x10, RF_PKT_RX_FIELD_1_CRC_CONFIG_12, \
  569. 0x09, RF_PKT_RX_FIELD_4_CRC_CONFIG_5, \
  570. 0x08, RF_PKT_CRC_SEED_31_24_4, \
  571. 0x10, RF_MODEM_MOD_TYPE_12, \
  572. 0x05, RF_MODEM_FREQ_DEV_0_1, \
  573. 0x10, RF_MODEM_TX_RAMP_DELAY_12, \
  574. 0x10, RF_MODEM_BCR_NCO_OFFSET_2_12, \
  575. 0x07, RF_MODEM_AFC_LIMITER_1_3, \
  576. 0x05, RF_MODEM_AGC_CONTROL_1, \
  577. 0x10, RF_MODEM_AGC_WINDOW_SIZE_12, \
  578. 0x0E, RF_MODEM_RAW_CONTROL_10, \
  579. 0x06, RF_MODEM_RAW_SEARCH2_2, \
  580. 0x06, RF_MODEM_SPIKE_DET_2, \
  581. 0x05, RF_MODEM_RSSI_MUTE_1, \
  582. 0x09, RF_MODEM_DSA_CTRL1_5, \
  583. 0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12, \
  584. 0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12, \
  585. 0x10, RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12, \
  586. 0x08, RF_PA_MODE_4, \
  587. 0x0B, RF_SYNTH_PFDCP_CPFF_7, \
  588. 0x10, RF_MATCH_VALUE_1_12, \
  589. 0x0C, RF_FREQ_CONTROL_INTE_8, \
  590. 0x00 \
  591. }
  592. #else
  593. #define RADIO_CONFIGURATION_DATA_ARRAY { 0 }
  594. #endif
  595. // DEFAULT VALUES FOR CONFIGURATION PARAMETERS
  596. #define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT 30000000L
  597. #define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT 0x00
  598. #define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT 0x10
  599. #define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT 0x01
  600. #define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT 0x1000
  601. #define RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD_DEFAULT {0x42, 0x55, 0x54, 0x54, 0x4F, 0x4E, 0x31} // BUTTON1
  602. #define RADIO_CONFIGURATION_DATA_RADIO_PATCH_INCLUDED 0x00
  603. #define RADIO_CONFIGURATION_DATA_RADIO_PATCH_SIZE 0x00
  604. #define RADIO_CONFIGURATION_DATA_RADIO_PATCH { }
  605. #ifndef RADIO_CONFIGURATION_DATA_ARRAY
  606. #error "This property must be defined!"
  607. #endif
  608. #ifndef RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ
  609. #define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT
  610. #endif
  611. #ifndef RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER
  612. #define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT
  613. #endif
  614. #ifndef RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH
  615. #define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT
  616. #endif
  617. #ifndef RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP
  618. #define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT
  619. #endif
  620. #ifndef RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET
  621. #define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT
  622. #endif
  623. #ifndef RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD
  624. #define RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD_DEFAULT
  625. #endif
  626. #define RADIO_CONFIGURATION_DATA { \
  627. Radio_Configuration_Data_Array, \
  628. RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER, \
  629. RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH, \
  630. RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP, \
  631. RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET, \
  632. RADIO_CONFIGURATION_DATA_CUSTOM_PAYLOAD \
  633. }
  634. #endif /* RADIO_CONFIG_H_ */