cc110x-defines.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008 Freie Universit├Ąt Berlin
3  * Copyright (C) 2013 INRIA
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
22 #ifndef CC110X_DEFINES_H
23 #define CC110X_DEFINES_H
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
35 #define VARIABLE_PKTLEN (0x01)
36 
48 #define CRC_OK (0x80)
49 
54 #define LQI_EST (0x7F)
55 #define I_RSSI (0x00)
56 #define I_LQI (0x01)
57 #define MARC_STATE (0x1F)
58 #define PKTSTATUS_CS (0x40)
59 #define PKTSTATUS_PQT_REACHED (0x20)
60 #define PKTSTATUS_CCA (0x10)
61 #define PKTSTATUS_SFD (0x08)
62 #define PKTSTATUS_GDO2 (0x04)
63 #define PKTSTATUS_GDO1 (0x02)
64 #define PKTSTATUS_GDO0 (0x01)
65 #define TXFIFO_UNDERFLOW (0x80)
66 #define BYTES_IN_TXFIFO (0x7F)
67 #define RXFIFO_OVERFLOW (0x80)
68 #define BYTES_IN_RXFIFO (0x7F)
75 #define PKT_LENGTH_CONFIG (0x03)
82 #define CC110X_WRITE_BURST (0x40)
83 #define CC110X_READ_SINGLE (0x80)
84 #define CC110X_READ_BURST (0xC0)
85 #define CC110X_NOBYTE (0xFF)
92 #define CC110X_IOCFG2 (0x00)
93 #define CC110X_IOCFG1 (0x01)
94 #define CC110X_IOCFG0 (0x02)
95 #define CC110X_FIFOTHR (0x03)
96 #define CC110X_SYNC1 (0x04)
97 #define CC110X_SYNC0 (0x05)
98 #define CC110X_PKTLEN (0x06)
99 #define CC110X_PKTCTRL1 (0x07)
100 #define CC110X_PKTCTRL0 (0x08)
101 #define CC110X_ADDR (0x09)
102 #define CC110X_CHANNR (0x0A)
103 #define CC110X_FSCTRL1 (0x0B)
104 #define CC110X_FSCTRL0 (0x0C)
105 #define CC110X_FREQ2 (0x0D)
106 #define CC110X_FREQ1 (0x0E)
107 #define CC110X_FREQ0 (0x0F)
108 #define CC110X_MDMCFG4 (0x10)
109 #define CC110X_MDMCFG3 (0x11)
110 #define CC110X_MDMCFG2 (0x12)
111 #define CC110X_MDMCFG1 (0x13)
112 #define CC110X_MDMCFG0 (0x14)
113 #define CC110X_DEVIATN (0x15)
114 #define CC110X_MCSM2 (0x16)
115 #define CC110X_MCSM1 (0x17)
116 #define CC110X_MCSM0 (0x18)
117 #define CC110X_FOCCFG (0x19)
118 #define CC110X_BSCFG (0x1A)
119 #define CC110X_AGCCTRL2 (0x1B)
120 #define CC110X_AGCCTRL1 (0x1C)
121 #define CC110X_AGCCTRL0 (0x1D)
122 #define CC110X_WOREVT1 (0x1E)
123 #define CC110X_WOREVT0 (0x1F)
124 #define CC110X_WORCTRL (0x20)
125 #define CC110X_FREND1 (0x21)
126 #define CC110X_FREND0 (0x22)
127 #define CC110X_FSCAL3 (0x23)
128 #define CC110X_FSCAL2 (0x24)
129 #define CC110X_FSCAL1 (0x25)
130 #define CC110X_FSCAL0 (0x26)
131 #define CC110X_RCCTRL1 (0x27)
132 #define CC110X_RCCTRL0 (0x28)
133 #define CC110X_FSTEST (0x29)
134 #define CC110X_PTEST (0x2A)
135 #define CC110X_AGCTEST (0x2B)
136 #define CC110X_TEST2 (0x2C)
137 #define CC110X_TEST1 (0x2D)
138 #define CC110X_TEST0 (0x2E)
145 #define CC110X_SRES (0x30)
151 #define CC110X_SFSTXON (0x31)
152 #define CC110X_SXOFF (0x32)
153 #define CC110X_SCAL (0x33)
154 #define CC110X_SRX (0x34)
159 #define CC110X_STX (0x35)
160 #define CC110X_SIDLE (0x36)
161 #define CC110X_SAFC (0x37)
162 #define CC110X_SWOR (0x38)
163 #define CC110X_SPWD (0x39)
164 #define CC110X_SFRX (0x3A)
165 #define CC110X_SFTX (0x3B)
166 #define CC110X_SWORRST (0x3C)
167 #define CC110X_SNOP (0x3D)
174 #define CC110X_PARTNUM (0x30)
175 #define CC110X_VERSION (0x31)
176 #define CC110X_FREQEST (0x32)
177 #define CC110X_LQI (0x33)
178 #define CC110X_RSSI (0x34)
179 #define CC110X_MARCSTATE (0x35)
180 #define CC110X_WORTIME1 (0x36)
181 #define CC110X_WORTIME0 (0x37)
182 #define CC110X_PKTSTATUS (0x38)
183 #define CC110X_VCO_VC_DAC (0x39)
184 #define CC110X_TXBYTES (0x3A)
185 #define CC110X_RXBYTES (0x3B)
197 #define CC110X_PATABLE (0x3E)
198 #define CC110X_TXFIFO (0x3F)
199 #define CC110X_RXFIFO (0x3F)
202 #ifdef __cplusplus
203 }
204 #endif
205 
206 #endif /* CC110X_DEFINES_H */
207