Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
 4.1.99
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
spi_buf Struct Reference

SPI buffer structure. More...

#include <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.

A 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: