SPIM

The SPI controller peripheral (SPIM) provides a full-duplex, 4-wire synchronous serial communication interface.

You can find more details about the SPIM hardware peripheral in the respective Product Specification documents:

Reference code

The following samples and tests use the SPIM peripheral and can serve as a usage reference:

Application

Comment

Zephyr’s SPI driver twister test

Test utilizing Zephyr’s SPI driver API to send data between MOSI and MISO pins connected using a jumper wire

Zephyr’s SPI RTIO loopback sample

Sample utilizing the RTIO-based SPI API to perform transfers between two SPI controllers, one acting as controller and the other as peripheral

Zephyr’s pressure sensor sample

Sample utilizing Zephyr’s sensor driver API to communicate with external pressure sensor over SPI bus.

Usage guides

The following guides describe how the peripheral’s hardware capabilities are mapped to software component interfaces, along with their limitations.