PDK API Guide for J721E
OSPI_Transaction Struct Reference

Detailed Description

A SPI_Transaction data structure is used with OSPI_transfer(). It indicates how many SPI_FrameFormat frames are sent and received from the buffers pointed to txBuf and rxBuf. The arg variable is an user-definable argument which gets passed to the SPI_CallbackFxn when the SPI driver is in SPI_MODE_CALLBACK.

Data Fields

size_t count
 
void * txBuf
 
void * rxBuf
 
void * arg
 
OSPI_Status status
 

Field Documentation

◆ count

size_t OSPI_Transaction::count

Number of frames for this transaction

◆ txBuf

void* OSPI_Transaction::txBuf

void * to a buffer with data to be transmitted

◆ rxBuf

void* OSPI_Transaction::rxBuf

void * to a buffer to receive data

◆ arg

void* OSPI_Transaction::arg

Argument to be passed to the callback function

◆ status

OSPI_Status OSPI_Transaction::status

Status code set by SPI_transfer