Random Number Generator

GET_RND_VALUE

The radio transceiver is capable of generating a 2-bit random value. It can be read from the sub register SR_RND_VALUE, whenever the radio transceiver is in one of the [RX_BASIC] states. The value is updated at an interval of tTR29.

Note:
It is also possible to read SR_RND_VALUE in RX_AACK_ON. However, the value should not be read in BUSY_RX_AACK. The radio transceiver can be forced to remain in state RX_AACK_ON by disabling the preamble detector (see PREAMBLE_DETECTOR_DISABLE).
inline_mscgraph_94
Code example
    /* AT86RF231::[RX_BASIC] */
    rnd_value = trx_bit_read(SR_RND_VALUE);
    proc_rnd_value(rnd_value);

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