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 7070#if !defined(TEST_PIN_SPARE_2)
7171#define TEST_PIN_SPARE_2 D8
7272#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
7379
7480class RFBits ;
7581class TestPins ;
82+ class Se2435Pins ;
7683
7784class NanostackRfPhyAtmel : public NanostackRfPhy {
7885public:
@@ -86,10 +93,13 @@ class NanostackRfPhyAtmel : public NanostackRfPhy {
8693 virtual void set_mac_address (uint8_t *mac);
8794
8895private:
96+ #if !defined(DISABLE_AT24MAC)
8997 AT24Mac _mac;
98+ #endif
9099 uint8_t _mac_addr[8 ];
91100 RFBits *_rf;
92101 TestPins *_test_pins;
102+ Se2435Pins *_se2435_pa_pins;
93103 bool _mac_set;
94104
95105 const PinName _spi_mosi;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ extern "C" {
2626#define RF24_IRQS 0x01
2727#define BBC0_IRQS 0x02
2828#define BBC1_IRQS 0x03
29+ #define RF_AUXS 0x01
2930#define RF_CFG 0x06
3031#define RF_IQIFC1 0x0B
3132#define RF_PN 0x0D
@@ -47,6 +48,8 @@ extern "C" {
4748#define RF_EDV 0x10
4849#define RF_TXCUTC 0x12
4950#define RF_TXDFE 0x13
51+ #define RF_PAC 0x14
52+ #define RF_PADFE 0x16
5053#define BBC_IRQM 0x00
5154#define BBC_PC 0x01
5255#define BBC_RXFLL 0x04
@@ -55,6 +58,9 @@ extern "C" {
5558#define BBC_TXFLH 0x07
5659#define BBC_FBLL 0x08
5760#define BBC_FBLH 0x09
61+ #define BBC_OFDMPHRTX 0x0C
62+ #define BBC_OFDMC 0x0E
63+ #define BBC_OFDMSW 0x0F
5864#define BBC_OQPSKC0 0x10
5965#define BBC_OQPSKC1 0x11
6066#define BBC_OQPSKC2 0x12
@@ -82,6 +88,20 @@ extern "C" {
8288#define BBC1_FBRXS 0x3000
8389#define BBC1_FBTXS 0x3800
8490
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+
85105// RF_AGCC
86106#define AGCI (1 << 6)
87107#define AVGS 0x30
@@ -90,7 +110,7 @@ extern "C" {
90110// RF_AGCS
91111#define TGT 0xE0
92112#define TGT_1 (1 << 5)
93-
113+ #define TGT_3 (3 << 5)
94114
95115// RF_RXBWC
96116#define BW 0x0F
@@ -131,6 +151,7 @@ extern "C" {
131151// RF_TXDFE, RF_RXDFE
132152#define RCUT 0xE0
133153#define RCUT_4 (4 << 5)
154+ #define RCUT_3 (3 << 5)
134155#define RCUT_2 (2 << 5)
135156#define RCUT_1 (1 << 5)
136157#define RCUT_0 (0 << 5)
@@ -144,6 +165,41 @@ extern "C" {
144165#define SR_2 (2 << 0)
145166#define SR_1 (1 << 0)
146167
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+
147203// BBC_FSKC0
148204#define BT 0xC0
149205#define BT_20 (3 << 6)
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ extern "C" {
4848#define PART_AT86RF212 0x07
4949#define PART_AT86RF233 0x0B
5050#define PART_AT86RF215 0x34
51+ #define PART_AT86RF215M 0x36
5152#define VERSION_AT86RF212 0x01
5253#define VERSION_AT86RF212B 0x03
5354
You can’t perform that action at this time.
0 commit comments