SPIMaster_Transfer Struct

Header: #include <applibs/spi.h>

The description of an SPI master transfer operation. Call SPIMaster_InitTransfer to initialize an instance.

Note

This is an alias to a versioned structure. Define SPI_STRUCTS_VERSION to use this alias.

struct SPIMaster_Transfer {
    uint32_t z__magicAndVersion;
    SPI_TransferFlags flags;
    const uint8_t *writeData;
    uint8_t *readData;
    size_t length;
};

Members

uint32_t z__magicAndVersion

A unique identifier of the struct type and version. Do not edit.

SPI_TransferFlags flags

The transfer flags for the operation.

const uint8_t *writeData

The data for write operations. This value is ignored for half-duplex reads.

uint8_t *readData

The buffer for read operations. This value is ignored for half-duplex writes.

size_t length

The number of bytes to transfer.