Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
cc110x_constants.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2018 Otto-von-Guericke-Universität Magdeburg
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
19
#ifndef CC110X_CONSTANTS_H
20
#define CC110X_CONSTANTS_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
38
#define CC110X_STROBE_RESET 0x30
39
43
#define CC110X_STROBE_CALIBRATE 0x33
44
50
#define CC110X_STROBE_RX 0x34
51
57
#define CC110X_STROBE_TX 0x35
58
62
#define CC110X_STROBE_IDLE 0x36
63
67
#define CC110X_STROBE_OFF 0x39
68
74
#define CC110X_STROBE_FLUSH_RX 0x3A
75
81
#define CC110X_STROBE_FLUSH_TX 0x3B
82
86
#define CC110X_STROBE_STATUS 0x3D
87
106
#define CC110X_SINGLE_BYTE_WRITE 0x00
107
116
#define CC110X_BURST_WRITE 0x40
117
125
#define CC110X_SINGLE_BYTE_READ 0x80
126
135
#define CC110X_BURST_READ 0xC0
136
158
#define CC110X_MULTIREG_PATABLE 0x3E
159
175
#define CC110X_MULTIREG_FIFO 0x3F
176
192
#define CC110X_CONF_START 0x00
193
197
#define CC110X_REG_IOCFG2 0x00
198
202
#define CC110X_REG_IOCFG1 0x01
203
207
#define CC110X_REG_IOCFG0 0x02
208
228
#define CC110X_REG_PKTCTRL1 0x07
229
233
#define CC110X_REG_ADDR 0x09
234
238
#define CC110X_REG_CHANNR 0x0A
239
243
#define CC110X_REG_FSCTRL1 0x0B
244
248
#define CC110X_REG_FREQ2 0x0D
249
253
#define CC110X_REG_FREQ1 0x0E
254
258
#define CC110X_REG_FREQ0 0x0F
259
263
#define CC110X_REG_MDMCFG4 0x10
264
268
#define CC110X_REG_MDMCFG3 0x11
269
273
#define CC110X_REG_DEVIATN 0x15
274
280
#define CC110X_REG_FREND0 0x22
281
289
#define CC110X_REG_FSCAL3 0x23
290
298
#define CC110X_REG_FSCAL2 0x24
299
308
#define CC110X_REG_FSCAL1 0x25
309
316
#define CC110X_REG_FSCAL0 0x26
317
326
#define CC110X_REG_PTEST 0x2A
327
331
#define CC110X_REG_TEST2 0x2C
332
336
#define CC110X_REG_TEST1 0x2D
337
341
#define CC110X_REG_TEST0 0x2E
342
363
#define CC110X_REG_PARTNUM (0x30 | 0x40)
364
370
#define CC110X_REG_VERSION (0x31 | 0x40)
371
377
#define CC110X_REG_LQI (0x33 | 0x40)
378
384
#define CC110X_REG_RSSI (0x34 | 0x40)
385
391
#define CC110X_REG_PKTSTATUS (0x38 | 0x40)
392
401
#define CC110X_REG_TXBYTES (0x3A | 0x40)
402
411
#define CC110X_REG_RXBYTES (0x3B | 0x40)
412
432
#define CC110X_GDO_ON_RX_DATA 0x01
433
440
#define CC110X_GDO_ON_TX_DATA 0x02
441
446
#define CC110X_GDO_ON_TRANSMISSION 0x06
447
453
#define CC110X_GDO_ON_CHANNEL_CLEAR 0x09
454
459
#define CC110X_GDO_ON_PLL_IN_LOCK 0x0A
460
461
465
#define CC110X_GDO_CONSTANT_LOW 0x2F
466
470
#define CC110X_GDO_CONSTANT_HIGH 0x6F
471
479
#define CC110X_GDO0_ANALOG_TEMPERATURE 0x80
480
494
#define CC110X_PKTSTATUS_GDO0 0x01
495
499
#define CC110X_PKTSTATUS_GDO2 0x04
500
504
#define CC110X_PKTSTATUS_RECEIVING 0x08
505
508
#define CC110X_PKTSTATUS_CCA 0x10
509
513
#define CC110X_PKTSTATUS_CS 0x40
514
526
#define CC110X_PTEST_DEFAULT 0x7F
527
532
#define CC110X_PTEST_TEMPERATURE 0xBF
533
538
#define CC110X_FIFO_SIZE 64
539
544
#define CC110X_PKTCTRL1_VALUE 0x00
545
558
#define CC110X_PKTCTRL1_ADDR_ALL 0x00
559
562
#define CC110X_PKTCTRL1_ADDR_MATCH 0x02
563
570
#define CC110X_PKTCTRL1_GET_ADDR_MODE 0x03
571
573
#ifdef __cplusplus
574
}
575
#endif
576
577
#endif
/* CC110X_CONSTANTS_H */
578
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17