Automatic Generation of CRC

PHY_SET_TX_AUTO_CRC

The radio transceiver is able to automatically calculate the FCS of a frame to be transmitted. Therefore, the FCS does not need to be downloaded with the frame buffer write command (see trx_frame_write). The automatic FCS calculation can be enabled, if a 1 is written into the sub register SR_TX_AUTO_CRC_ON.

Parameters:
txcrc If set to 1, the FCS is calculated automatically. Otherwise, the frame will be transmitted as it was downloaded.
0 1 2 L-1 L +---+---+---+---+---+---+---+/.../+---+---+ |PHR| D | D | D | D | D | D | |FCS|FCS| +---+---+---+---+---+---+---+/.../+-o-+-o-+ +---+ auto generated FCS if txcrc=1 or user-provided data if txcrc=0

 PHR = contains the length L of the frame
 D and FCS form the PSDU.
 

inline_mscgraph_14
Code example
    /* AT86RF231::[CONFIG] */
    trx_bit_write(SR_TX_AUTO_CRC_ON, txcrc);

Generated on Mon Jan 12 18:32:15 2009 for SWPM AT86RF231 by  doxygen 1.5.2