radio_config.h 36 KB

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