Configuration

This section describes how the parameters for the Extended Operating Mode are configured.

TX_ARET Parameters

Parameters:
csma_retr Number of maximum CCA attempts, before giving up sending a frame. The parameter has the range 0 ... 7, with the following meaning:
  • 0 : 1 CCA attempt,
  • 1 : 2 CCA attempts (1 retry), ...,
  • 7 : 8 CCA attempts (7 retries).
csma_seed Seeding value for the random number generator of the CSMA-CA algorithm.
min_be Value of the minimum backoff exponent in the CSMA-CA algorithm.
frame_retr Number of attempts until giving up to send a frame sucessfully. The parameter has the range 0 ... 15, with the following meaning:
  • 0 : 1 transmit attempt
  • 1 : 2 transmit attempts (1 retry), ...
  • 15 : 16 transmit attempts (15 retries)
Note:
The IEEE 802.15.4-2003 standard defines the maximum number of retransmissions as three.
Until AT86RF230 V1.2, SR_MAX_FRAME_RETRIES must be set to 0, refer to errata list of the AT86RF230 data sheet.

For the configuration of the TX_ARET mode, the following sequences are defined:

RX_AACK Parameters

Parameters:
panid This is a 16 bit value for the PAN ID, which the address filter should match.
short_addr This is the 16 bit value for the short address, which the address filter should match.
ext_addr This is the 64 bit value for the extended address, which the address filter should match.
coord This is a boolean flag, which is true, if the radio transceiver is used as PAN coordinator (see IEEE 802.15.4-2003, chapter "7.5.6.2").
Note:
For the configuration of the RX_AACK mode parameters it is mandatory, to set the sub register SR_TX_AUTO_CRC_ON to 1, in order to send ACK frames with a valid FCS.

If needed the RG_PHY_ED_LEVEL can be read out after reception of the frame, refer to PHY_ED_FRAME_END.

For the configuration of the RX_AACK mode, the following sequence is defined:

Handling of Multibyte Variables

The following example shows the notation, which is used to describe, how multibyte variables are splitted into byte variables, which are used in the sequences for the Extended Operating Mode configuration.

      uint64_t var;
      uint8_t var_7_0   = var & 0xff          // bit 7:0
      uint8_t var_15_8  = (var >> 8) & 0xff   // bit 15:8
      uint8_t var_23_16 = (var >> 16) & 0xff  // bit 23:16
      uint8_t var_31_24 = (var >> 24) & 0xff  // bit 31:24
      uint8_t var_39_32 = (var >> 32) & 0xff  // bit 39:32
      uint8_t var_47_40 = (var >> 40) & 0xff  // bit 47:40
      uint8_t var_55_48 = (var >> 48) & 0xff  // bit 55:48
      uint8_t var_63_56 = (var >> 56) & 0xff  // bit 63:56
   


PHY_CONFIG_TX_ARET

This sequences describes, how the TX_ARET mode parameters are configured. The splitting of the parameters into register values is described here.

inline_mscgraph_59
Code example

PHY_CONFIG_RX_AACK

The following sequence is used to configure the RX_AACK mode. The splitting of the parameters into register values is described here.

inline_mscgraph_60
Code example

Generated on Fri Aug 10 16:10:05 2007 for SWPM AT86RF230 Rev. A by  doxygen 1.5.2