Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
spi_buf Struct Reference

SPI buffer structure. More...

#include <zephyr/drivers/spi.h>

Data Fields

void * buf
 Valid pointer to a data buffer, or NULL for NOP indication.
size_t len
 Length of the buffer buf in bytes, or length of NOP.

Detailed Description

SPI buffer structure.

An SPI buffer describes either a real data buffer or an indication of NOP.

For a NOP indicator:

  • If buffer is used for TX, only 0's will be sent for the length on the bus
  • If buffer is used for RX, that length of data received by bus will be ignored/skipped

Field Documentation

◆ buf

void* spi_buf::buf

Valid pointer to a data buffer, or NULL for NOP indication.

◆ len

size_t spi_buf::len

Length of the buffer buf in bytes, or length of NOP.


The documentation for this struct was generated from the following file: