Main Content

SPI Controller Transfer

Write data to and read data from SPI peripheral device

Add-On Required: This feature requires the Simulink Coder Support Package for Beaglebone Blue Hardware add-on.

  • SPI Master Transfer block

Libraries:
Simulink Coder Support Package for BeagleBone Blue Hardware / Communication

Description

Write data to and read data from an SPI peripheral 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.

Ports

Input

expand all

The input port through which the block accepts a single dimensional array of values to write to the peripheral device.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32

Output

expand all

Output port from which the block receives data from SPI peripheral device.

Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32

Parameters

expand all

Select the pin number on the BeagleBoneBlue board to which the SPI peripheral device is connected.

Select the mode for SPI communication.

For more information on mode, refer to SPI Transfer Modes.

Version History

Introduced in R2018b