UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
txrx-uart.h
1 
2 
3 static const registerSetting_t preferredSettings_fsk[]=
4 {
5  {CC112X_IOCFG3, 0x59},
6  {CC112X_IOCFG2, 0x13},
7  {CC112X_IOCFG1, 0xB0},
8  {CC112X_IOCFG0, 0x06},
9  {CC112X_SYNC_CFG1, 0x0B},
10  {CC112X_DEVIATION_M, 0xDA},
11  {CC112X_MODCFG_DEV_E, 0x00},
12  {CC112X_DCFILT_CFG, 0x1C},
13  {CC112X_FREQ_IF_CFG, 0x40},
14  {CC112X_IQIC, 0x46},
15  {CC112X_CHAN_BW, 0x69},
16  {CC112X_MDMCFG0, 0x05},
17  {CC112X_SYMBOL_RATE2, 0x3B},
18  {CC112X_SYMBOL_RATE1, 0x4E},
19  {CC112X_SYMBOL_RATE0, 0x82},
20  {CC112X_AGC_REF, 0x15},
21  {CC112X_AGC_CS_THR, 0x19},
22  {CC112X_AGC_CFG1, 0xA0},
23  {CC112X_AGC_CFG0, 0xCF},
24  {CC112X_FIFO_CFG, 0x00},
25  {CC112X_SETTLING_CFG, 0x03},
26  {CC112X_FS_CFG, 0x1B},
27  {CC112X_PKT_CFG0, 0x20},
28  {CC112X_PKT_CFG1, 0x05},
29  {CC112X_PA_CFG0, 0x7E},
30  {CC112X_PKT_LEN, 0xFF},
31  {CC112X_IF_MIX_CFG, 0x00},
32  {CC112X_FREQOFF_CFG, 0x22},
33  {CC112X_FREQ2, 0x5A},
34  {CC112X_FREQ1, 0x9F},
35  {CC112X_FREQ0, 0xFF},
36  {CC112X_IF_ADC0, 0x05},
37  {CC112X_FS_DIG1, 0x00},
38  {CC112X_FS_DIG0, 0x5F},
39  {CC112X_FS_CAL0, 0x0E},
40  {CC112X_FS_DIVTWO, 0x03},
41  {CC112X_FS_DSM0, 0x33},
42  {CC112X_FS_DVC0, 0x17},
43  {CC112X_FS_PFD, 0x50},
44  {CC112X_FS_PRE, 0x6E},
45  {CC112X_FS_REG_DIV_CML, 0x14},
46  {CC112X_FS_SPARE, 0xAC},
47  {CC112X_XOSC5, 0x0E},
48  {CC112X_XOSC3, 0xC7},
49  {CC112X_XOSC1, 0x07},
50 };
51 
52 static const registerSetting_t preferredSettings_cw[]=
53 {
54  {CC112X_IOCFG3, 0x59},
55  {CC112X_IOCFG2, 0x13},
56  {CC112X_IOCFG1, 0xB0},
57  {CC112X_IOCFG0, 0x06},
58  {CC112X_SYNC_CFG1, 0x08},
59  {CC112X_DEVIATION_M, 0xB4},
60  {CC112X_MODCFG_DEV_E, 0x0A},
61  {CC112X_DCFILT_CFG, 0x1C},
62  {CC112X_PREAMBLE_CFG1, 0x00},
63  {CC112X_FREQ_IF_CFG, 0x35},
64  {CC112X_IQIC, 0xC6},
65  {CC112X_CHAN_BW, 0x10},
66  {CC112X_MDMCFG1, 0x06},
67  {CC112X_MDMCFG0, 0x05},
68  {CC112X_SYMBOL_RATE2, 0x40},
69  {CC112X_SYMBOL_RATE1, 0x62},
70  {CC112X_SYMBOL_RATE0, 0x4E},
71  {CC112X_AGC_REF, 0x20},
72  {CC112X_AGC_CS_THR, 0x19},
73  {CC112X_AGC_CFG1, 0xA9},
74  {CC112X_AGC_CFG0, 0xCF},
75  {CC112X_FIFO_CFG, 0x00},
76  {CC112X_SETTLING_CFG, 0x03},
77  {CC112X_FS_CFG, 0x1B},
78  {CC112X_PKT_CFG2, 0x05},
79  {CC112X_PKT_CFG1, 0x00},
80  {CC112X_PKT_CFG0, 0x20},
81  {CC112X_PA_CFG2, 0x34},
82  {CC112X_PA_CFG0, 0x7E},
83  {CC112X_IF_MIX_CFG, 0x00},
84  {CC112X_FREQOFF_CFG, 0x22},
85  {CC112X_CFM_DATA_CFG, 0x01},
86  {CC112X_FREQ2, 0x5A},
87  {CC112X_FREQ1, 0xEF},
88  {CC112X_FREQ0, 0xFF},
89  {CC112X_IF_ADC0, 0x05},
90  {CC112X_FS_DIG1, 0x00},
91  {CC112X_FS_DIG0, 0x5F},
92  {CC112X_FS_CAL0, 0x0E},
93  {CC112X_FS_DIVTWO, 0x03},
94  {CC112X_FS_DSM0, 0x33},
95  {CC112X_FS_DVC0, 0x17},
96  {CC112X_FS_PFD, 0x50},
97  {CC112X_FS_PRE, 0x6E},
98  {CC112X_FS_REG_DIV_CML, 0x14},
99  {CC112X_FS_SPARE, 0xAC},
100  {CC112X_XOSC5, 0x0E},
101  {CC112X_XOSC3, 0xC7},
102  {CC112X_XOSC1, 0x07},
103  {CC112X_SERIAL_STATUS, 0x08},
104 };