![]() |
Contiki-NG
|
AT86RF215 radio constants and defines. More...
Go to the source code of this file.
Macros | |
| #define | AT86RF215_DELAY_BEFORE_TX ((unsigned)US_TO_RTIMERTICKS(315)) |
| The delay between radio Tx request and SFD sent 1) transition to TXPREP --> done in prepare(), needed only if CCA is enabled 2) tx_bb_delay --> <3 us for OQPSK 3) tx_proc_delay --> depends on register settings (~10 us) 4) tx_start_delay --> 4 us. | |
| #define | AT86RF215_DELAY_BEFORE_RX ((unsigned)US_TO_RTIMERTICKS(100)) |
| The delay between radio Rx request and start listening 1) transition to RX --> 90 us. | |
| #define | AT86RF215_DELAY_BEFORE_DETECT ((unsigned)US_TO_RTIMERTICKS(20)) |
| The delay between the end of SFD reception and the radio returning 1 to receiving_packet(). | |
| #define | AT86RF215_PHY_OVERHEAD (3) |
| The number of header and footer bytes of overhead at the PHY layer after SFD (1 length + 2 CRC) | |
| #define | AT86RF215_BYTE_AIR_TIME (32) |
| The air time for one byte in microsecond: 1 / (250kbps/8) == 32 us/byte. | |
AT86RF215 radio constants and defines.
Required by the Contiki-NG. The file is included by contiki-conf.h
Definition in file at86rf215-def.h.
| #define AT86RF215_DELAY_BEFORE_DETECT ((unsigned)US_TO_RTIMERTICKS(20)) |
The delay between the end of SFD reception and the radio returning 1 to receiving_packet().
Preamble length is 8 symbols (16 us) + SFD (2 us) = 18 us
Definition at line 73 of file at86rf215-def.h.
| #define AT86RF215_DELAY_BEFORE_RX ((unsigned)US_TO_RTIMERTICKS(100)) |
The delay between radio Rx request and start listening 1) transition to RX --> 90 us.
The radio drivers are built in a way, that radio must be on during the timeslot (TSCH_CONF_RADIO_ON_DURING_TIMESLOT), so this time could be smaller. The delay is added to compensate the "large" TX_DELAY.
Definition at line 66 of file at86rf215-def.h.
| #define AT86RF215_DELAY_BEFORE_TX ((unsigned)US_TO_RTIMERTICKS(315)) |
The delay between radio Tx request and SFD sent 1) transition to TXPREP --> done in prepare(), needed only if CCA is enabled 2) tx_bb_delay --> <3 us for OQPSK 3) tx_proc_delay --> depends on register settings (~10 us) 4) tx_start_delay --> 4 us.
However, the current drivers require appx. 240 us delay before TX.
If we put state transition to TXPREP into at86rf215_prepare(), then this time can be reduced for 80us. However, that would disrupt the CSMA ...
Definition at line 56 of file at86rf215-def.h.