SPI Command Mode

The SPI interface of the radio transceiver can return status information on the MISO pin in the first byte of each of the transceiver access primitives. This section describes, how the information in this status byte is configured.

For more information about the MISO access and the status information refer to section Transceiver Access Primitives and section 4.3 (SPI Protocol) of the AT86RF212 datasheet.

Use Cases:


SET_SPI_CMD_MODE

The content of the radio transceiver status information can be configured using SR_SPI_CMD_MODE. After reset, the content of the first byte sent on MISO to the microcontroller is set to 0x00.

Parameters:
spicmdmode This parameter configures the status information in sub register SR_SPI_CMD_MODE to return the following status information during an SPI access:
inline_mscgraph_31
Code example
    /* AT86RF212::[ACTIVE] */
    trx_bit_write(SR_SPI_CMD_MODE, spicmdmode);

GET_SPI_CMD_MODE

inline_mscgraph_32
Code example
    /* AT86RF212::[ACTIVE] */
    spicmdmode = trx_bit_read(SR_SPI_CMD_MODE);

Generated on Mon Aug 17 13:34:59 2009 for SWPM AT86RF212 by  doxygen 1.5.6