writeRead
Write data to and read data from SPI device
Description
[
writes new data to, and reads existing data from, an SPI device. outputData] = writeRead(myspidevice,data,dataPrecision)
To read data from an SPI device, write data to the device. Supply the
data argument with the number of values that you expect to
read.
The writeRead method stops when it finishes writing and
reading the specified data from the device.
This method converts data of all other data types to uint8 for transmission.
Note
To generate C/C++ code for this function, you must have an Embedded Coder® license.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b
