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.
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").
pending_data This bit specifies, whether the device has pending data. During generation of an acknowledgment, the radio will copy this bit into the frame pending subfield of the frame control field in response to a data request MAC command.
Note:
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 sequences are 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_58
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_59
Code example

PHY_SET_PD_DATA

The following sequence is used to set the pending data bit SR_AACK_SET_PD. After reception of a data request MAC command, the content of SR_AACK_SET_PD is copied into the frame pending subfield bit of the generated acknowledgment frame. However, after the reception of a data frame or other MAC command frames, the radio will set the frame pending subfield to 0 (compare IEEE 802.15.4-2003, section 7.2.2.3.1).

inline_mscgraph_60
Code example
    trx_bit_write(SR_AACK_SET_PD, pending_data);

Generated on Fri Sep 28 14:07:37 2007 for SWPM AT86RF230 Rev. B by  doxygen 1.5.2