SPI Controller Transfer
Write data to and read data from SPI peripheral device
Libraries:
Simulink Coder Support Package for
BBC micro:bit/Basic
Simulink Coder Support Package for
STMicroelectronics Nucleo Boards/
Common
Simulink Coder Support Package for
STMicroelectronics Discovery Boards/
STM32F746G-Discovery
Simulink Coder Support Package for
STMicroelectronics Discovery Boards/
STM32F769I-Discovery
Description
The SPI controller Transfer block writes data to and reads data from a peripheral device over the Serial Peripheral Interface (SPI) interface. The block outputs an array of the same size and data type as the input values. You can use this block with Byte Pack and Byte Unpack blocks to support heterogeneous data type transfers.
Using this block, you can access an SPI device to measure quantities such as temperature, pressure.
For more information on SPI communication, see Support SPI Communication.