usb
Vitis Drivers API Documentation
XUsb_EpConfig Struct Reference

The XUsb_EpConfig structure is used to configure endpoints. More...

Data Fields

int OutIn
 The end point direction. More...
 
int EpType
 Bulk/interrupt/Isochronous. More...
 
int Buffer0Count
 Pkt Size for the first ping-pong buffer. More...
 
volatile int Buffer0Ready
 
 Status flag for first ping-pong

buffer More...

 
int Buffer1Count
 Pkt Size for the second ping-pong buffer. More...
 
volatile int Buffer1Ready
 
 Status flag for second ping-pong

buffer More...

 
u32 Size
 Maximum buffer size for this end point. More...
 
u32 RamBase
 The rambase offset value in the end point buffer space. More...
 
volatile int CurBufNum
 
 The current ping-pong buffer to be

used More...

 
XUsb_EpHandlerFunc HandlerFunc
 Call back function for this end point. More...
 
void * HandlerRef
 Callback reference. More...
 

Detailed Description

The XUsb_EpConfig structure is used to configure endpoints.

Field Documentation

int XUsb_EpConfig::Buffer0Count

Pkt Size for the first ping-pong buffer.

Referenced by Ep1IntrHandler(), SetupControlWriteStatusStage(), XUsb_ConfigureDevice(), and XUsb_EpConfigure().

int XUsb_EpConfig::Buffer1Count

Pkt Size for the second ping-pong buffer.

Referenced by Ep1IntrHandler(), XUsb_ConfigureDevice(), and XUsb_EpConfigure().

volatile int XUsb_EpConfig::Buffer1Ready
volatile int XUsb_EpConfig::CurBufNum

 The current ping-pong buffer to be

used

Referenced by XUsb_ConfigureDevice(), XUsb_EpDataRecv(), and XUsb_EpDataSend().

int XUsb_EpConfig::EpType

Bulk/interrupt/Isochronous.

Referenced by InitUsbInterface(), XUsb_ConfigureDevice(), and XUsb_EpConfigure().

XUsb_EpHandlerFunc XUsb_EpConfig::HandlerFunc

Call back function for this end point.

Referenced by XUsb_EpSetHandler(), and XUsb_IntrHandler().

void* XUsb_EpConfig::HandlerRef

Callback reference.

Referenced by XUsb_EpSetHandler(), and XUsb_IntrHandler().

int XUsb_EpConfig::OutIn
u32 XUsb_EpConfig::RamBase

The rambase offset value in the end point buffer space.

Referenced by GetConfiguration(), GetMaxLUN(), GetStatus(), InitUsbInterface(), LoadEP0(), XUsb_ConfigureDevice(), and XUsb_EpConfigure().

u32 XUsb_EpConfig::Size

Maximum buffer size for this end point.

Referenced by InitUsbInterface(), XUsb_ConfigureDevice(), and XUsb_EpConfigure().