Go to the documentation of this file.
14#ifndef RADIO_CONFIG_H_
15#define RADIO_CONFIG_H_
35#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ 26000000L
36#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER 0x00
37#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH 0x07
38#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP 0x03
39#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET 0xF000
50#define RF_POWER_UP 0x02, 0x81, 0x01, 0x01, 0x8C, 0xBA, 0x80
56#define RF_GPIO_PIN_CFG 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
68#define RF_GLOBAL_XO_TUNE_2 0x11, 0x00, 0x02, 0x00, 0x00, 0x00
79#define RF_GLOBAL_CONFIG_1 0x11, 0x00, 0x01, 0x03, 0x20
91#define RF_INT_CTL_ENABLE_2 0x11, 0x01, 0x02, 0x00, 0x01, 0x10
105#define RF_FRR_CTL_A_MODE_4 0x11, 0x02, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00
124#define RF_PREAMBLE_TX_LENGTH_9 0x11, 0x10, 0x09, 0x00, 0x08, 0x14, 0x00, 0x0F, 0x31, 0x00, 0x00, 0x00, 0x00
140#define RF_SYNC_CONFIG_6 0x11, 0x11, 0x06, 0x00, 0x01, 0xB4, 0x2B, 0x00, 0x00, 0x00
162#define RF_PKT_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x00, 0x04, 0x01, 0x08, 0xFF, 0xFF, 0x20, 0x02, 0x00, 0x00, 0x00, 0x00, 0x30
184#define RF_PKT_RX_THRESHOLD_12 0x11, 0x12, 0x0C, 0x0C, 0x30, 0x00, 0x40, 0x04, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
206#define RF_PKT_FIELD_3_CRC_CONFIG_12 0x11, 0x12, 0x0C, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
228#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
243#define RF_PKT_RX_FIELD_4_CRC_CONFIG_5 0x11, 0x12, 0x05, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00
257#define RF_PKT_CRC_SEED_31_24_4 0x11, 0x12, 0x04, 0x36, 0x00, 0x00, 0x00, 0x00
279#define RF_MODEM_MOD_TYPE_12 0x11, 0x20, 0x0C, 0x00, 0x02, 0x00, 0x07, 0x01, 0x86, 0xA0, 0x01, 0x8C, 0xBA, 0x80, 0x00, 0x03
290#define RF_MODEM_FREQ_DEV_0_1 0x11, 0x20, 0x01, 0x0C, 0x27
312#define RF_MODEM_TX_RAMP_DELAY_12 0x11, 0x20, 0x0C, 0x18, 0x01, 0x80, 0x08, 0x03, 0xC0, 0x00, 0x10, 0x10, 0x00, 0xE8, 0x01, 0xB1
334#define RF_MODEM_BCR_NCO_OFFSET_2_12 0x11, 0x20, 0x0C, 0x24, 0x01, 0x2E, 0x79, 0x00, 0x97, 0x02, 0xC2, 0x00, 0x04, 0x23, 0x80, 0x11
347#define RF_MODEM_AFC_LIMITER_1_3 0x11, 0x20, 0x03, 0x30, 0x16, 0x97, 0x80
358#define RF_MODEM_AGC_CONTROL_1 0x11, 0x20, 0x01, 0x35, 0xE0
380#define RF_MODEM_AGC_WINDOW_SIZE_12 0x11, 0x20, 0x0C, 0x38, 0x11, 0x5F, 0x5F, 0x80, 0x02, 0xFF, 0xFF, 0x00, 0x2A, 0x0C, 0xA4, 0x22
400#define RF_MODEM_RAW_CONTROL_10 0x11, 0x20, 0x0A, 0x45, 0x83, 0x01, 0x27, 0x01, 0x00, 0xFF, 0x06, 0x00, 0x18, 0x40
412#define RF_MODEM_RAW_SEARCH2_2 0x11, 0x20, 0x02, 0x50, 0x84, 0x08
424#define RF_MODEM_SPIKE_DET_2 0x11, 0x20, 0x02, 0x54, 0x04, 0x07
435#define RF_MODEM_RSSI_MUTE_1 0x11, 0x20, 0x01, 0x57, 0x00
450#define RF_MODEM_DSA_CTRL1_5 0x11, 0x20, 0x05, 0x5B, 0x40, 0x04, 0x0B, 0x78, 0x20
472#define RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12 0x11, 0x21, 0x0C, 0x00, 0xFF, 0xC4, 0x30, 0x7F, 0xF5, 0xB5, 0xB8, 0xDE, 0x05, 0x17, 0x16, 0x0C
494#define RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12 0x11, 0x21, 0x0C, 0x0C, 0x03, 0x00, 0x15, 0xFF, 0x00, 0x00, 0xFF, 0xC4, 0x30, 0x7F, 0xF5, 0xB5
516#define RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12 0x11, 0x21, 0x0C, 0x18, 0xB8, 0xDE, 0x05, 0x17, 0x16, 0x0C, 0x03, 0x00, 0x15, 0xFF, 0x00, 0x00
530#define RF_PA_MODE_4 0x11, 0x22, 0x04, 0x00, 0x20, 0x2F, 0x00, 0x1D
547#define RF_SYNTH_PFDCP_CPFF_7 0x11, 0x23, 0x07, 0x00, 0x2C, 0x0E, 0x0B, 0x04, 0x0C, 0x73, 0x03
569#define RF_MATCH_VALUE_1_12 0x11, 0x30, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
587#define RF_FREQ_CONTROL_INTE_8 0x11, 0x40, 0x08, 0x00, 0x41, 0x0E, 0x27, 0x62, 0x27, 0x62, 0x20, 0xFF
594#ifndef FIRMWARE_LOAD_COMPILE
595#define RADIO_CONFIGURATION_DATA_ARRAY { \
598 0x08, RF_GPIO_PIN_CFG, \
599 0x06, RF_GLOBAL_XO_TUNE_2, \
600 0x05, RF_GLOBAL_CONFIG_1, \
601 0x06, RF_INT_CTL_ENABLE_2, \
602 0x08, RF_FRR_CTL_A_MODE_4, \
603 0x0D, RF_PREAMBLE_TX_LENGTH_9, \
604 0x0A, RF_SYNC_CONFIG_6, \
605 0x10, RF_PKT_CRC_CONFIG_12, \
606 0x10, RF_PKT_RX_THRESHOLD_12, \
607 0x10, RF_PKT_FIELD_3_CRC_CONFIG_12, \
608 0x10, RF_PKT_RX_FIELD_1_CRC_CONFIG_12, \
609 0x09, RF_PKT_RX_FIELD_4_CRC_CONFIG_5, \
610 0x08, RF_PKT_CRC_SEED_31_24_4, \
611 0x10, RF_MODEM_MOD_TYPE_12, \
612 0x05, RF_MODEM_FREQ_DEV_0_1, \
613 0x10, RF_MODEM_TX_RAMP_DELAY_12, \
614 0x10, RF_MODEM_BCR_NCO_OFFSET_2_12, \
615 0x07, RF_MODEM_AFC_LIMITER_1_3, \
616 0x05, RF_MODEM_AGC_CONTROL_1, \
617 0x10, RF_MODEM_AGC_WINDOW_SIZE_12, \
618 0x0E, RF_MODEM_RAW_CONTROL_10, \
619 0x06, RF_MODEM_RAW_SEARCH2_2, \
620 0x06, RF_MODEM_SPIKE_DET_2, \
621 0x05, RF_MODEM_RSSI_MUTE_1, \
622 0x09, RF_MODEM_DSA_CTRL1_5, \
623 0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE13_7_0_12, \
624 0x10, RF_MODEM_CHFLT_RX1_CHFLT_COE1_7_0_12, \
625 0x10, RF_MODEM_CHFLT_RX2_CHFLT_COE7_7_0_12, \
626 0x08, RF_PA_MODE_4, \
627 0x0B, RF_SYNTH_PFDCP_CPFF_7, \
628 0x10, RF_MATCH_VALUE_1_12, \
629 0x0C, RF_FREQ_CONTROL_INTE_8, \
633#define RADIO_CONFIGURATION_DATA_ARRAY { 0 }
637#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT 30000000L
638#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT 0x00
639#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT 0x10
640#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT 0x01
641#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT 0x1000
643#define RADIO_CONFIGURATION_DATA_RADIO_PATCH_INCLUDED 0x00
644#define RADIO_CONFIGURATION_DATA_RADIO_PATCH_SIZE 0x00
645#define RADIO_CONFIGURATION_DATA_RADIO_PATCH { }
647#ifndef RADIO_CONFIGURATION_DATA_ARRAY
648#error "This property must be defined!"
651#ifndef RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ
652#define RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ RADIO_CONFIGURATION_DATA_RADIO_XO_FREQ_DEFAULT
655#ifndef RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER
656#define RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER_DEFAULT
659#ifndef RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH
660#define RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH_DEFAULT
663#ifndef RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP
664#define RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP_DEFAULT
667#ifndef RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET
668#define RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET_DEFAULT
671#define RADIO_CONFIGURATION_DATA { \
672 Radio_Configuration_Data_Array, \
673 RADIO_CONFIGURATION_DATA_CHANNEL_NUMBER, \
674 RADIO_CONFIGURATION_DATA_RADIO_PACKET_LENGTH, \
675 RADIO_CONFIGURATION_DATA_RADIO_STATE_AFTER_POWER_UP, \
676 RADIO_CONFIGURATION_DATA_RADIO_DELAY_CNT_AFTER_RESET \