Write data to and read data from SPI slave device
Simulink Coder Support Package for BeagleBone Blue Hardware / Communication
Write data to and read data from an SPI slave device. To open the pin map of the BeagleBone® Blue board, click the View pin map button.
For more information on SPI Communication, refer to Support SPI Communication.
The block can be used along with Byte Pack or Byte Unpack block to support heterogeneous data type transfers.
Port_1— Input port to write data to SPI slave
The input port through which the block accepts a single dimensional array of values to write to the slave device.
Port_1— Output port to read data from an SPI slave device
Output port from which the block receives data from SPI slave device.
SPI select— Slave select pin to which the SPI slave device is connected
Select the pin number on the BeagleBoneBlue board to which the SPI slave device is connected.
Mode (Clock polarity and phase)— Mode of SPI communication
Select the mode for SPI communication.
For more information on mode, refer to SPI transfer Modes.