File tree Expand file tree Collapse file tree 6 files changed +264
-38
lines changed
components/802.15.4_RF/atmel-rf-driver Expand file tree Collapse file tree 6 files changed +264
-38
lines changed Original file line number Diff line number Diff line change 70
70
#if !defined(TEST_PIN_SPARE_2)
71
71
#define TEST_PIN_SPARE_2 D8
72
72
#endif
73
+ #if !defined(SE2435L_CSD)
74
+ #define SE2435L_CSD D2
75
+ #endif
76
+ #if !defined(SE2435L_ANT_SEL)
77
+ #define SE2435L_ANT_SEL D8
78
+ #endif
73
79
74
80
class RFBits ;
75
81
class TestPins ;
82
+ class Se2435Pins ;
76
83
77
84
class NanostackRfPhyAtmel : public NanostackRfPhy {
78
85
public:
@@ -86,10 +93,13 @@ class NanostackRfPhyAtmel : public NanostackRfPhy {
86
93
virtual void set_mac_address (uint8_t *mac);
87
94
88
95
private:
96
+ #if !defined(DISABLE_AT24MAC)
89
97
AT24Mac _mac;
98
+ #endif
90
99
uint8_t _mac_addr[8 ];
91
100
RFBits *_rf;
92
101
TestPins *_test_pins;
102
+ Se2435Pins *_se2435_pa_pins;
93
103
bool _mac_set;
94
104
95
105
const PinName _spi_mosi;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ extern "C" {
26
26
#define RF24_IRQS 0x01
27
27
#define BBC0_IRQS 0x02
28
28
#define BBC1_IRQS 0x03
29
+ #define RF_AUXS 0x01
29
30
#define RF_CFG 0x06
30
31
#define RF_IQIFC1 0x0B
31
32
#define RF_PN 0x0D
@@ -47,6 +48,8 @@ extern "C" {
47
48
#define RF_EDV 0x10
48
49
#define RF_TXCUTC 0x12
49
50
#define RF_TXDFE 0x13
51
+ #define RF_PAC 0x14
52
+ #define RF_PADFE 0x16
50
53
#define BBC_IRQM 0x00
51
54
#define BBC_PC 0x01
52
55
#define BBC_RXFLL 0x04
@@ -55,6 +58,9 @@ extern "C" {
55
58
#define BBC_TXFLH 0x07
56
59
#define BBC_FBLL 0x08
57
60
#define BBC_FBLH 0x09
61
+ #define BBC_OFDMPHRTX 0x0C
62
+ #define BBC_OFDMC 0x0E
63
+ #define BBC_OFDMSW 0x0F
58
64
#define BBC_OQPSKC0 0x10
59
65
#define BBC_OQPSKC1 0x11
60
66
#define BBC_OQPSKC2 0x12
@@ -82,6 +88,20 @@ extern "C" {
82
88
#define BBC1_FBRXS 0x3000
83
89
#define BBC1_FBTXS 0x3800
84
90
91
+ // RF_AUXS
92
+ #define EXTLNABYP (1 << 7)
93
+ #define AGCMAP 0x60
94
+ #define AGCMAP_2 (2 << 5)
95
+ #define AVEN (1 << 3)
96
+
97
+ // RF_PAC
98
+ #define TXPWR 0x1F
99
+ #define TXPWR_11 (11 << 0)
100
+
101
+ // RF_PADFE
102
+ #define PADFE 0xC0
103
+ #define RF_FEMODE3 (3 << 6)
104
+
85
105
// RF_AGCC
86
106
#define AGCI (1 << 6)
87
107
#define AVGS 0x30
@@ -90,7 +110,7 @@ extern "C" {
90
110
// RF_AGCS
91
111
#define TGT 0xE0
92
112
#define TGT_1 (1 << 5)
93
-
113
+ #define TGT_3 (3 << 5)
94
114
95
115
// RF_RXBWC
96
116
#define BW 0x0F
@@ -131,6 +151,7 @@ extern "C" {
131
151
// RF_TXDFE, RF_RXDFE
132
152
#define RCUT 0xE0
133
153
#define RCUT_4 (4 << 5)
154
+ #define RCUT_3 (3 << 5)
134
155
#define RCUT_2 (2 << 5)
135
156
#define RCUT_1 (1 << 5)
136
157
#define RCUT_0 (0 << 5)
@@ -144,6 +165,41 @@ extern "C" {
144
165
#define SR_2 (2 << 0)
145
166
#define SR_1 (1 << 0)
146
167
168
+ // BBC_OFDMPHRTX
169
+ #define MCS 0x07
170
+ #define MCS_0 (0 << 0)
171
+ #define MCS_1 (1 << 0)
172
+ #define MCS_2 (2 << 0)
173
+ #define MCS_3 (3 << 0)
174
+ #define MCS_4 (4 << 0)
175
+ #define MCS_5 (5 << 0)
176
+ #define MCS_6 (6 << 0)
177
+
178
+ // BBC_OFDMC
179
+ #define SSRX 0xC0
180
+ #define SSRX_0 (0 << 6)
181
+ #define SSRX_1 (1 << 6)
182
+ #define SSRX_2 (2 << 6)
183
+ #define SSRX_3 (3 << 6)
184
+ #define SSTX 0x30
185
+ #define SSTX_0 (0 << 4)
186
+ #define SSTX_1 (1 << 4)
187
+ #define SSTX_2 (2 << 4)
188
+ #define SSTX_3 (3 << 4)
189
+ #define LFO (1 << 3)
190
+ #define POI (1 << 2)
191
+ #define OPT 0x03
192
+ #define OPT_1 (0 << 0)
193
+ #define OPT_2 (1 << 0)
194
+ #define OPT_3 (2 << 0)
195
+ #define OPT_4 (3 << 0)
196
+
197
+ // BBC_OFDMSW
198
+ #define OFDM_PDT 0xE0
199
+ #define OFDM_PDT_5 (5 << 5)
200
+ #define OFDM_PDT_4 (4 << 5)
201
+ #define OFDM_PDT_3 (3 << 5)
202
+
147
203
// BBC_FSKC0
148
204
#define BT 0xC0
149
205
#define BT_20 (3 << 6)
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ extern "C" {
48
48
#define PART_AT86RF212 0x07
49
49
#define PART_AT86RF233 0x0B
50
50
#define PART_AT86RF215 0x34
51
+ #define PART_AT86RF215M 0x36
51
52
#define VERSION_AT86RF212 0x01
52
53
#define VERSION_AT86RF212B 0x03
53
54
You can’t perform that action at this time.
0 commit comments