-
Notifications
You must be signed in to change notification settings - Fork 2
/
cc2500_VAL.h
94 lines (93 loc) · 3.08 KB
/
cc2500_VAL.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/* Sync word qualifier mode = 30/32 sync word bits detected */
/* CRC autoflush = false */
/* Channel spacing = 199.951172 */
/* Data format = Normal mode */
/* Data rate = 2.39897 */
/* RX filter BW = 203.125000 */
/* Preamble count = 4 */
/* Whitening = false */
/* Address config = No address check */
/* Carrier frequency = 2432.999908 */
/* Device address = 0 */
/* TX power = 0 */
/* Manchester enable = false */
/* CRC enable = true */
/* Deviation = 38.085938 */
/* Packet length mode = Variable packet length mode. Packet length configured by the first byte after sync word */
/* Packet length = 255 */
/* Modulation format = 2-FSK */
/* Base frequency = 2432.999908 */
/* Modulated = true */
/* Channel number = 0 */
/* PA table */
#define PA_TABLE {0xfe,0x00,0x00,0x00,0x00,0x00,0x00,0x00,}
/***************************************************************
* SmartRF Studio(tm) Export
*
* Radio register settings specifed with C-code
* compatible #define statements.
*
* RF device: CC2500
*
***************************************************************/
#define VAL_IOCFG2 0x29
#define VAL_IOCFG1 0x2E
#define VAL_IOCFG0 0x06
#define VAL_FIFOTHR 0x07
#define VAL_SYNC1 0xD3
#define VAL_SYNC0 0x91
#define VAL_PKTLEN 0xFF
#define VAL_PKTCTRL1 0x04
#define VAL_PKTCTRL0 0x05
#define VAL_ADDR 0x00
#define VAL_CHANNR 0x00
#define VAL_FSCTRL1 0x08
#define VAL_FSCTRL0 0x00
#define VAL_FREQ2 0x5D
#define VAL_FREQ1 0x93
#define VAL_FREQ0 0xB1
#define VAL_MDMCFG4 0x86
#define VAL_MDMCFG3 0x83
#define VAL_MDMCFG2 0x03
#define VAL_MDMCFG1 0x22
#define VAL_MDMCFG0 0xF8
#define VAL_DEVIATN 0x44
#define VAL_MCSM2 0x07
#define VAL_MCSM1 0x30
#define VAL_MCSM0 0x18
#define VAL_FOCCFG 0x16
#define VAL_BSCFG 0x6C
#define VAL_AGCCTRL2 0x03
#define VAL_AGCCTRL1 0x40
#define VAL_AGCCTRL0 0x91
#define VAL_WOREVT1 0x87
#define VAL_WOREVT0 0x6B
#define VAL_WORCTRL 0xF8
#define VAL_FREND1 0x56
#define VAL_FREND0 0x10
#define VAL_FSCAL3 0xA9
#define VAL_FSCAL2 0x0A
#define VAL_FSCAL1 0x00
#define VAL_FSCAL0 0x11
#define VAL_RCCTRL1 0x41
#define VAL_RCCTRL0 0x00
#define VAL_FSTEST 0x59
#define VAL_PTEST 0x7F
#define VAL_AGCTEST 0x3F
#define VAL_TEST2 0x88
#define VAL_TEST1 0x31
#define VAL_TEST0 0x0B
#define VAL_PARTNUM 0x80
#define VAL_VERSION 0x03
#define VAL_FREQEST 0x00
#define VAL_LQI 0x00
#define VAL_RSSI 0x00
#define VAL_MARCSTATE 0x00
#define VAL_WORTIME1 0x00
#define VAL_WORTIME0 0x00
#define VAL_PKTSTATUS 0x00
#define VAL_VCO_VC_DAC 0x00
#define VAL_TXBYTES 0x00
#define VAL_RXBYTES 0x00
#define VAL_RCCTRL1_STATUS 0x00
#define VAL_RCCTRL0_STATUS 0x00