C28x SPI Master Transfer
Write data to and read data from SPI slave device
- Library:
Embedded Coder Support Package for Texas Instruments C2000 Processors / C2802x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C2803x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C2805x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C2806x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C280x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C281x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C2833x
Embedded Coder Support Package for Texas Instruments C2000 Processors / C2834x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F2807x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F2837xD
Embedded Coder Support Package for Texas Instruments C2000 Processors / F2837xS
Embedded Coder Support Package for Texas Instruments C2000 Processors / F2838x/ C28x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28004x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28002x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28003x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28M35x / C28x
Embedded Coder Support Package for Texas Instruments C2000 Processors / F28M36x / C28x
Description
The C28x SPI Master Transfer block writes data to and reads data from a slave device over the Serial Peripheral Interface (SPI). The block runs in master mode. The block outputs an array of the same size and data type as the input values. You can use this block with the Byte Pack and Byte Unpack blocks for heterogeneous data type transfers.
Configure the SPI modules for the specific hardware board by navigating to Hardware Implementation > Target hardware resources. Verify that these settings meet the requirements of your application.
Using this block, you can access an SPI device to measure quantities such as temperature and pressure.
Ports
Input
Output
Parameters
Model Examples
Version History
Introduced in R2017b
See Also
C28x SPI Receive | C28x SPI Transmit | C28x Hardware Interrupt