Serial Peripheral Interface
Leverage the capabilities of serial peripheral interface (SPI) for serial synchronous communication between Raspberry Pi hardware and sensors, memory modules, and other peripherals.
Blocks
| SPI Controller Transfer | Write data to and read data from SPI peripheral device |
| SPI Register Read | Read data from SPI peripheral device register |
| SPI Register Write | Write data to registers of an SPI peripheral device |
Objects
spidev | Connection to SPI device on Raspberry Pi hardware |
Functions
writeRead | Write data to and read data from SPI device |
Model Settings
Apps
| Raspberry Pi Resource Monitor App | Monitor and manage Raspberry Pi resources |
Topics
- Support SPI Communication
Enable communication with other SPI devices by using the SPI Controller Transfer block from the support package or blockset library.
- Enable Secondary SPI Bus of Raspberry Pi Hardware
Use the instructions in this section to enable the secondary SPI bus interface on your Raspberry Pi hardware board.
- Enable and Configure Raspberry Pi for SPI and CAN Communication Using MCP2515 CAN Controller
This section provides a comprehensive workflow to enable and configure the MCP2515 CAN interface on a Raspberry Pi board.
- Model Configuration Raspberry Pi Blockset
This section describes about the model configuration parameters.
- Asynchronous Serial Communication
Asynchronous serial communication.
- Raspberry Pi SPI Interface
SPI interface on the Raspberry Pi hardware.
- Use Raspberry Pi SPI Interface to Connect to Device
Use the SPI interface on the Raspberry Pi hardware.


