forked from SzczepanLeon/wMbus-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmode_rf_settings.hpp
64 lines (59 loc) · 1.57 KB
/
tmode_rf_settings.hpp
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
/***********************************************************************************
Filename: tmode_rf_settings.hpp
***********************************************************************************/
#ifndef _TMODE_RF_SETTINGS_H
#define _TMODE_RF_SETTINGS_H
#include <ELECHOUSE_CC1101_SRC_DRV.h>
const uint8_t TMODE_RF_SETTINGS_LEN = 47;
//based on https://www.ti.com/lit/an/swra234a/swra234a.pdf
const uint8_t TMODE_RF_SETTINGS_BYTES[] = {
// Type B
CC1101_IOCFG2,0x06,
CC1101_IOCFG1,0x2E,
CC1101_IOCFG0,0x00,
CC1101_FIFOTHR,0x07,
CC1101_SYNC1,0x54,
CC1101_SYNC0,0x3D,
CC1101_PKTLEN,0xFF,
CC1101_PKTCTRL1,0x04,
CC1101_PKTCTRL0,0x00,
CC1101_ADDR,0x00,
CC1101_CHANNR,0x00,
CC1101_FSCTRL1,0x08,
CC1101_FSCTRL0,0x00,
CC1101_FREQ2,0x21,
CC1101_FREQ1,0x6B,
CC1101_FREQ0,0xD0,
CC1101_MDMCFG4,0x5C,
CC1101_MDMCFG3,0x04,
CC1101_MDMCFG2,0x06,
CC1101_MDMCFG1,0x22,
CC1101_MDMCFG0,0xF8,
CC1101_DEVIATN, 0x44,
CC1101_MCSM2,0x07,
CC1101_MCSM1,0x00,
CC1101_MCSM0,0x18,
CC1101_FOCCFG,0x2E,
CC1101_BSCFG,0xBF,
CC1101_AGCCTRL2,0x43,
CC1101_AGCCTRL1,0x09,
CC1101_AGCCTRL0,0xB5,
CC1101_WOREVT1,0x87,
CC1101_WOREVT0,0x6B,
CC1101_WORCTRL,0xFB,
CC1101_FREND1,0xB6,
CC1101_FREND0,0x10,
CC1101_FSCAL3,0xEA,
CC1101_FSCAL2,0x2A,
CC1101_FSCAL1,0x00,
CC1101_FSCAL0,0x1F,
CC1101_RCCTRL1,0x41,
CC1101_RCCTRL0,0x0,
CC1101_FSTEST,0x59,
CC1101_PTEST,0x7F,
CC1101_AGCTEST,0x3F,
CC1101_TEST2,0x81,
CC1101_TEST1,0x35,
CC1101_TEST0,0x09
};
#endif