9 #ifndef __RFM69CONFIG_H__ 10 #define __RFM69CONFIG_H__ 14 static const rfm_reg_t CONFIG[][2] =
16 { RFM69_REG_01_OPMODE, RF_OPMODE_SEQUENCER_ON | RF_OPMODE_LISTEN_OFF | RFM69_MODE_RX },
17 { RFM69_REG_02_DATA_MODUL, RF_DATAMODUL_DATAMODE_PACKET | RF_DATAMODUL_MODULATIONTYPE_FSK | RF_DATAMODUL_MODULATIONSHAPING_00 },
19 { RFM69_REG_03_BITRATE_MSB, 0x3E},
20 { RFM69_REG_04_BITRATE_LSB, 0x80},
22 { RFM69_REG_05_FDEV_MSB, 0x00},
23 { RFM69_REG_06_FDEV_LSB, 0xC5},
25 { RFM69_REG_07_FRF_MSB, 0xD9 },
26 { RFM69_REG_08_FRF_MID, 0x60 },
27 { RFM69_REG_09_FRF_LSB, 0x12 },
29 { RFM69_REG_0B_AFC_CTRL, RF_AFCLOWBETA_OFF },
34 { RFM69_REG_11_PA_LEVEL, RF_PALEVEL_PA0_ON | RF_PALEVEL_PA1_OFF | RF_PALEVEL_PA2_OFF | 0x1f},
37 { RFM69_REG_12_PA_RAMP, RF_PARAMP_500 },
39 { RFM69_REG_13_OCP, RF_OCP_ON | RF_OCP_TRIM_95 },
41 { RFM69_REG_18_LNA, RF_LNA_ZIN_50 },
43 { RFM69_REG_19_RX_BW, RF_RXBW_DCCFREQ_010 | RF_RXBW_MANT_16 | RF_RXBW_EXP_2},
45 { RFM69_REG_1E_AFC_FEI, RF_AFCFEI_AFCAUTO_ON | RF_AFCFEI_AFCAUTOCLEAR_ON },
47 { RFM69_REG_25_DIO_MAPPING1, RF_DIOMAPPING1_DIO0_01 },
48 { RFM69_REG_26_DIO_MAPPING2, RF_DIOMAPPING2_CLKOUT_OFF },
53 { RFM69_REG_2E_SYNC_CONFIG, RF_SYNC_ON | RF_SYNC_FIFOFILL_AUTO | RF_SYNC_SIZE_2 | RF_SYNC_TOL_0 },
54 { RFM69_REG_2F_SYNCVALUE1, 0x2D },
55 { RFM69_REG_30_SYNCVALUE2, 0xAA },
56 { RFM69_REG_37_PACKET_CONFIG1, RF_PACKET1_FORMAT_VARIABLE | RF_PACKET1_DCFREE_OFF | RF_PACKET1_CRC_ON | RF_PACKET1_CRCAUTOCLEAR_ON | RF_PACKET1_ADRSFILTERING_OFF },
57 { RFM69_REG_38_PAYLOAD_LENGTH, RFM69_FIFO_SIZE },
59 { RFM69_REG_3C_FIFO_THRESHOLD, RF_FIFOTHRESH_TXSTART_FIFONOTEMPTY | 0x05 },
60 { RFM69_REG_3D_PACKET_CONFIG2, RF_PACKET2_RXRESTARTDELAY_2BITS | RF_PACKET2_AUTORXRESTART_ON | RF_PACKET2_AES_OFF },
61 { RFM69_REG_6F_TEST_DAGC, RF_DAGC_IMPROVED_LOWBETA0 },