spips
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Groups Pages
XSpiPs Struct Reference

The XSpiPs driver instance data. More...

#include <xspips.h>

Data Fields

XSpiPs_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...
 
u32 RequestedBytes
 Number of bytes to transfer (state) More...
 
u32 RemainingBytes
 Number of bytes left to transfer(state) More...
 
u32 IsBusy
 A transfer is in progress (state) More...
 
u32 SlaveSelect
 The slave select value when XSPIPS_FORCE_SSELECT_OPTION is set. More...
 
void * StatusRef
 Callback reference for status handler. More...
 
u32 FifoDepth
 Depth of the transfer FIFO in Bytes. More...
 
u32 FifoWidth
 Width of the transfer FIFO in Bytes. More...
 

Detailed Description

The XSpiPs driver instance data.

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

Field Documentation

u32 XSpiPs::FifoDepth
u32 XSpiPs::FifoWidth

Width of the transfer FIFO in Bytes.

Referenced by XSpiPs_CfgInitialize(), XSpiPs_InterruptHandler(), XSpiPs_PolledTransfer(), and XSpiPs_Transfer().

u8* XSpiPs::RecvBufferPtr
u32 XSpiPs::RemainingBytes

Number of bytes left to transfer(state)

Referenced by XSpiPs_Abort(), XSpiPs_CfgInitialize(), XSpiPs_InterruptHandler(), XSpiPs_PolledTransfer(), and XSpiPs_Transfer().

u32 XSpiPs::RequestedBytes
u8* XSpiPs::SendBufferPtr
u32 XSpiPs::SlaveSelect

The slave select value when XSPIPS_FORCE_SSELECT_OPTION is set.

Referenced by XSpiPs_GetSlaveSelect(), XSpiPs_PolledTransfer(), XSpiPs_SetSlaveSelect(), and XSpiPs_Transfer().

void* XSpiPs::StatusRef

Callback reference for status handler.

Referenced by XSpiPs_InterruptHandler(), and XSpiPs_SetStatusHandler().