qspips
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Groups Pages
XQspiPs Struct Reference

Holds the XQspiPs driver instance data. More...

#include <xqspips.h>

Data Fields

XQspiPs_Config Config
 Configuration structure. More...
 
u32 IsReady
 Device is initialized and ready. More...
 
u8 * SendBufferPtr
 Buffer to send (state) More...
 
u8 * RecvBufferPtr
 Buffer to receive (state) More...
 
int RequestedBytes
 Number of bytes to transfer (state) More...
 
int RemainingBytes
 Number of bytes left to transfer(state) More...
 
u32 IsBusy
 A transfer is in progress (state) More...
 
XQspiPs_StatusHandler StatusHandler
 Status callback handler. More...
 
void * StatusRef
 Callback reference for status handler. More...
 
u32 ShiftReadData
 Flag to indicate whether the data read from the Rx FIFO needs to be shifted in cases where the data is less than 4 bytes. More...
 

Detailed Description

Holds the XQspiPs driver instance data.

The user is required to allocate a variable of this type for every QSPI device in the system. A pointer to a variable of this type is then passed to the driver API functions.

Field Documentation

u8* XQspiPs::RecvBufferPtr
int XQspiPs::RemainingBytes
int XQspiPs::RequestedBytes
u8* XQspiPs::SendBufferPtr
u32 XQspiPs::ShiftReadData

Flag to indicate whether the data read from the Rx FIFO needs to be shifted in cases where the data is less than 4 bytes.

Referenced by XQspiPs_PolledTransfer(), and XQspiPs_Transfer().

XQspiPs_StatusHandler XQspiPs::StatusHandler

Status callback handler.

Referenced by XQspiPs_CfgInitialize(), XQspiPs_InterruptHandler(), and XQspiPs_SetStatusHandler().

void* XQspiPs::StatusRef

Callback reference for status handler.

Referenced by XQspiPs_InterruptHandler(), and XQspiPs_SetStatusHandler().