#ifndef CC1101_SETUP_H #define CC1101_SETUP_H // These setting were calculated in the SmartRF Studio // trying to match the SiLabs si4460 settings used by the // DD2702H Transmitter // Rf settings for CC1101 const uint8_t rfSettings[] = { 0x0D, // IOCFG2 GDO2 Output Pin Configuration 0x2E, // IOCFG1 GDO1 Output Pin Configuration 0x2E, // IOCFG0 GDO0 Output Pin Configuration 0x0F, // FIFOTHR RX FIFO and TX FIFO Thresholds 0x2D, // SYNC1 Sync Word, High Byte 0xD4, // SYNC0 Sync Word, Low Byte 0x15, // PKTLEN Packet Length 21 bytes 0x00, // PKTCTRL1 Packet Automation Control // no status append 0x30, // PKTCTRL0 Packet Automation Control // async mode 0x00, // ADDR Device Address 0x00, // CHANNR Channel Number 0x06, // FSCTRL1 Frequency Synthesizer Control 0x00, // FSCTRL0 Frequency Synthesizer Control 0x10, // FREQ2 Frequency Control Word, High Byte 433.92Mhz 0x12, // FREQ1 Frequency Control Word, Middle Byte 0x34, // FREQ0 Frequency Control Word, Low Byte 0xFA, // MDMCFG4 Modem Configuration 0x84, // MDMCFG3 Modem Configuration // 0x33, // MDMCFG2 Modem Configuration ASK no Manch 32bit sync 0x13, // MDMCFG2 Modem Configuration GFSK no Manch 32bit sync 0x73, // MDMCFG1 Modem Configuration 0x2F, // MDMCFG0 Modem Configuration 0x34, // DEVIATN Modem Deviation Setting 0x07, // MCSM2 Main Radio Control State Machine Configuration 0x30, // MCSM1 Main Radio Control State Machine Configuration 0x18, // MCSM0 Main Radio Control State Machine Configuration 0x16, // FOCCFG Frequency Offset Compensation Configuration 0x6C, // BSCFG Bit Synchronization Configuration 0x03, // AGCCTRL2 AGC Control 0x40, // AGCCTRL1 AGC Control 0x91, // AGCCTRL0 AGC Control 0x87, // WOREVT1 High Byte Event0 Timeout 0x6B, // WOREVT0 Low Byte Event0 Timeout 0xFB, // WORCTRL Wake On Radio Control 0x56, // FREND1 Front End RX Configuration 0x10, // FREND0 Front End TX Configuration 0xE9, // FSCAL3 Frequency Synthesizer Calibration 0x2A, // FSCAL2 Frequency Synthesizer Calibration 0x00, // FSCAL1 Frequency Synthesizer Calibration 0x1F, // FSCAL0 Frequency Synthesizer Calibration 0x41, // RCCTRL1 RC Oscillator Configuration 0x00, // RCCTRL0 RC Oscillator Configuration }; #endif // CC1101_SETUP_H