Contiki-NG
Loading...
Searching...
No Matches
at86rf215-conf.h File Reference

Configuration file for the AT86RF215 radio drivers. More...

Go to the source code of this file.

Macros

#define FREQ_BAND_SUBGHZ   (0)
 Current radio driver enables the selection of and frequency band only before compiling.
 
#define AT86RF215_FREQUENCY_BAND   (FREQ_BAND_24GHZ)
 Select the Frequency band to use: 0 = Sub-GHz, 1 = 2.4 GHz.
 
#define FSK_CHANNEL_SPACING   5000000
 Option left to change the modulation parameters (e.g.
 
#define AT86RF215_AUTO_ACK   (0)
 If driver is used for CSMA (default)
 
#define AT86RF215_FRAME_FILTER   (0)
 Enable/disable address filter mode, where radio only accepts frames with matching address.
 
#define AT86RF215_SEND_ON_CCA   (0)
 Do a CCA manually before sending a packet.
 
#define AT86RF215_AUTO_CCATX   (0)
 Radio does a CCA automaticaly before sending a packet.
 
#define AT86RF215_CCA_THRESHOLD   (AT86RF215_CONF_CCA_THRESHOLD)
 CCA threshold in dBm.
 
#define AT86RF215_POLL_MODE   (1)
 Radio poll mode - should disable interrupts and enable upper levels to poll the radio for events.
 
#define AT86RF215_AUTO_CRC   (1)
 Enable/disable auto-CRC generation Radio will automatically append CRC to outgoing frames.
 
#define AT86RF215_CRC_16BIT   (AT86RF215_CONF_CRC_16BIT)
 Select either 16-bit (1) or 32-bit (0) CRC.
 
#define AT86RF215_AUTO_TX2RX   (0)
 Enable the automatic transition to RX state after a packet is sent.
 
#define AT86RF215_DEBUG_GPIO_TSCH   (0)
 Debug driver operation with GPIO pins (development purpose only)
 
#define AT86RF215_LOG_LEVEL   (LOG_LEVEL_WARN)
 Logging level for the AT86RF215 driver.
 

Variables

static const at86rf215_radio_config_t radio_config_oqpsk_250kbps []
 Legacy O-QPSK (IEEE 802.15.4-2011)
 
static const at86rf215_radio_config_t radio_config_fsk_test []
 FSK modulation (not tested yet)
 

Detailed Description

Configuration file for the AT86RF215 radio drivers.

Author
Grega Morano grega.nosp@m..mor.nosp@m.ano@i.nosp@m.js.s.nosp@m.i

Definition in file at86rf215-conf.h.

Macro Definition Documentation

◆ AT86RF215_AUTO_ACK

#define AT86RF215_AUTO_ACK   (0)

If driver is used for CSMA (default)

If driver is used for TSCH Enable/disable auto-acknowledgement, where radio automatically sends an ACK frame after receiving a frame with the ACK request bit set

Definition at line 256 of file at86rf215-conf.h.

◆ AT86RF215_AUTO_CCATX

#define AT86RF215_AUTO_CCATX   (0)

Radio does a CCA automaticaly before sending a packet.

TODO: Not implemented yet! (No need, only if we want to offload the operation to the radio)

Definition at line 287 of file at86rf215-conf.h.

◆ AT86RF215_AUTO_TX2RX

#define AT86RF215_AUTO_TX2RX   (0)

Enable the automatic transition to RX state after a packet is sent.

TODO: Not implemented yet (No need?)

Definition at line 336 of file at86rf215-conf.h.

◆ AT86RF215_FREQUENCY_BAND

#define AT86RF215_FREQUENCY_BAND   (FREQ_BAND_24GHZ)

Select the Frequency band to use: 0 = Sub-GHz, 1 = 2.4 GHz.

NOTE: Current driver is designed for only one RF band at the time!

Definition at line 60 of file at86rf215-conf.h.

◆ FREQ_BAND_SUBGHZ

#define FREQ_BAND_SUBGHZ   (0)

Current radio driver enables the selection of and frequency band only before compiling.

In future we could reconfigure the drivers to support both

Definition at line 51 of file at86rf215-conf.h.

◆ FSK_CHANNEL_SPACING

#define FSK_CHANNEL_SPACING   5000000

Option left to change the modulation parameters (e.g.

1Mbit/s)

Definition at line 142 of file at86rf215-conf.h.

Variable Documentation

◆ radio_config_oqpsk_250kbps

const at86rf215_radio_config_t radio_config_oqpsk_250kbps[]
static
Initial value:
=
{
{RG_BBC1_PC, 0x1F},
{RG_RF24_TXDFE, 0x81},
{RG_RF24_TXCUTC, 0x0B},
{RG_RF24_PAC, 0xFF},
{RG_RF24_RXBWC, 0x0B},
{RG_RF24_RXDFE, 0x41},
{RG_RF24_EDC, 0x00},
{RG_RF24_EDD, 0x13},
{RG_RF24_AGCC, 0x01},
{RG_RF24_AGCS, 0x77},
{RG_RF24_CS, (uint8_t) ( 5000000 / 25000) },
{RG_RF24_CCF0L, (uint8_t) ((( 2405000000 - 1500000000) / 25000) & 0x00FF) },
{RG_RF24_CCF0H, (uint8_t) (((( 2405000000 - 1500000000) / 25000) & 0xFF00) >> 8) },
{RG_BBC1_OQPSKPHRTX, 0x09},
{RG_BBC1_OQPSKC0, 0x03},
{RG_BBC1_OQPSKC1, 0x47},
{RG_BBC1_OQPSKC2, 0x05},
{RG_BBC1_OQPSKC3, 0x00},
}

Legacy O-QPSK (IEEE 802.15.4-2011)

  • 250 kbit/s
  • currently only 2.4 GHZ band

Definition at line 99 of file at86rf215-conf.h.