Main Content
writeRead
Write data to and read data from SPI device
Add-On Required: This feature requires the MATLAB Support Package for BeagleBone Black Hardware add-on.
Description
[
writes
new data to, and reads data from, an SPI device.outputData
] = writeRead(spi
,data
,dataPrecision
)
Before reading data from an SPI device, you must write data
to the device. Supply the data
argument with
the number of values that you expect to read.
This function converts data of all other data types to uint8
for
transmission.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2015a