<spi_write ss="ss"
count="count"
radix="radix">
message
</spi_write>
Write a stream of bytes to the downstream SPI slave device and read back the full-duplex response.
Parameters
Details
If count is greater than the number of bytes in the message, the remaining bytes are clocked with all bits set to zero. This allows for a shorter representation of read commands.
If count is 0, no bytes will be written to the slave. However, the slave select line will be dropped for 5-10 microseconds. This can be useful in sending a signal to a downstream SPI slave without actually sending any bytes. For example, if an SPI slave has tied the slave select to an interrupt line and it sees the line is toggled without any bytes sent, it can interpret the action as a command to prepare its firmware for an subsequent reception of bytes.
Please see the Aardvark I2C/SPI Adapter User Manual or the Promira Serial Platform User Manual for more information.