![]() |
usbpsu
Xilinx SDK Drivers API Documentation
|
Functions | |
s32 | XUsbPsu_RecvSetup (struct XUsbPsu *InstancePtr) |
Initiates DMA on Control Endpoint 0 to receive Setup packet. More... | |
void | XUsbPsu_Ep0StallRestart (struct XUsbPsu *InstancePtr) |
Stalls Control Endpoint and restarts to receive Setup packet. More... | |
void | XUsbPsu_Ep0DataDone (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event) |
Checks the Data Phase and calls user Endpoint handler. More... | |
void | XUsbPsu_Ep0StatusDone (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event) |
Checks the Status Phase and starts next Control transfer. More... | |
void | XUsbPsu_Ep0XferComplete (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event) |
Handles Transfer complete event of Control Endpoints EP0 OUT and EP0 IN. More... | |
s32 | XUsbPsu_Ep0StartStatus (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event) |
Starts Status Phase of Control Transfer. More... | |
void | XUsbPsu_Ep0_EndControlData (struct XUsbPsu *InstancePtr, struct XUsbPsu_Ep *Ept) |
Ends Data Phase - used incase of error. More... | |
void | XUsbPsu_Ep0XferNotReady (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event) |
Handles Transfer Not Ready event of Control Endpoints EP0 OUT and EP0 IN. More... | |
void | XUsbPsu_Ep0Intr (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event) |
Handles Interrupts of Control Endpoints EP0 OUT and EP0 IN. More... | |
s32 | XUsbPsu_Ep0Send (struct XUsbPsu *InstancePtr, u8 *BufferPtr, u32 BufferLen) |
Initiates DMA to send data on Control Endpoint EP0 IN to Host. More... | |
s32 | XUsbPsu_Ep0Recv (struct XUsbPsu *InstancePtr, u8 *BufferPtr, u32 Length) |
Initiates DMA to receive data on Control Endpoint EP0 OUT from Host. More... | |
void | XUsbSleep (u32 USeconds) |
API for Sleep routine. More... | |
void XUsbPsu_Ep0_EndControlData | ( | struct XUsbPsu * | InstancePtr, |
struct XUsbPsu_Ep * | Ept | ||
) |
#include <xusbpsu_controltransfers.c>
Ends Data Phase - used incase of error.
InstancePtr | is a pointer to the XUsbPsu instance. |
Dep | is a pointer to the Endpoint structure. |
References XUsbPsu_Ep::ResourceIndex, and XUsbPsu_GetEpParams().
void XUsbPsu_Ep0DataDone | ( | struct XUsbPsu * | InstancePtr, |
const struct XUsbPsu_Event_Epevt * | Event | ||
) |
#include <xusbpsu_controltransfers.c>
Checks the Data Phase and calls user Endpoint handler.
InstancePtr | is a pointer to the XUsbPsu instance. |
Event | is a pointer to the Endpoint event occured in core. |
void XUsbPsu_Ep0Intr | ( | struct XUsbPsu * | InstancePtr, |
const struct XUsbPsu_Event_Epevt * | Event | ||
) |
#include <xusbpsu_controltransfers.c>
Handles Interrupts of Control Endpoints EP0 OUT and EP0 IN.
InstancePtr | is a pointer to the XUsbPsu instance. |
Event | is a pointer to the Endpoint event occured in core. |
s32 XUsbPsu_Ep0Recv | ( | struct XUsbPsu * | InstancePtr, |
u8 * | BufferPtr, | ||
u32 | Length | ||
) |
#include <xusbpsu_controltransfers.c>
Initiates DMA to receive data on Control Endpoint EP0 OUT from Host.
InstancePtr | is a pointer to the XUsbPsu instance. |
BufferPtr | is pointer to data. |
Length | is Length of data to be received. |
s32 XUsbPsu_Ep0Send | ( | struct XUsbPsu * | InstancePtr, |
u8 * | BufferPtr, | ||
u32 | BufferLen | ||
) |
#include <xusbpsu_controltransfers.c>
Initiates DMA to send data on Control Endpoint EP0 IN to Host.
InstancePtr | is a pointer to the XUsbPsu instance. |
BufferPtr | is pointer to data. |
BufferLen | is Length of data buffer. |
References XUsbPsu::eps, XUsbPsu_Ep::EpStatus, and XUsbPsu_GetEpParams().
void XUsbPsu_Ep0StallRestart | ( | struct XUsbPsu * | InstancePtr | ) |
#include <xusbpsu_controltransfers.c>
Stalls Control Endpoint and restarts to receive Setup packet.
InstancePtr | is a pointer to the XUsbPsu instance. |
References XUsbPsu::eps, and XUsbPsu_Ep::EpStatus.
Referenced by XUsbPsu_Ep0StatusDone().
s32 XUsbPsu_Ep0StartStatus | ( | struct XUsbPsu * | InstancePtr, |
const struct XUsbPsu_Event_Epevt * | Event | ||
) |
#include <xusbpsu_controltransfers.c>
Starts Status Phase of Control Transfer.
InstancePtr | is a pointer to the XUsbPsu instance. |
Event | is a pointer to the Endpoint event occured in core. |
void XUsbPsu_Ep0StatusDone | ( | struct XUsbPsu * | InstancePtr, |
const struct XUsbPsu_Event_Epevt * | Event | ||
) |
#include <xusbpsu_controltransfers.c>
Checks the Status Phase and starts next Control transfer.
InstancePtr | is a pointer to the XUsbPsu instance. |
Event | is a pointer to the Endpoint event occured in core. |
References XUsbPsu::ConfigPtr, XUsbPsu_Config::IsCacheCoherent, XUsbPsu_Ep0StallRestart(), XUsbPsu_RecvSetup(), and XUsbPsu_SetTestMode().
void XUsbPsu_Ep0XferComplete | ( | struct XUsbPsu * | InstancePtr, |
const struct XUsbPsu_Event_Epevt * | Event | ||
) |
#include <xusbpsu_controltransfers.c>
Handles Transfer complete event of Control Endpoints EP0 OUT and EP0 IN.
InstancePtr | is a pointer to the XUsbPsu instance. |
Event | is a pointer to the Endpoint event occured in core. |
void XUsbPsu_Ep0XferNotReady | ( | struct XUsbPsu * | InstancePtr, |
const struct XUsbPsu_Event_Epevt * | Event | ||
) |
#include <xusbpsu_controltransfers.c>
Handles Transfer Not Ready event of Control Endpoints EP0 OUT and EP0 IN.
InstancePtr | is a pointer to the XUsbPsu instance. |
Event | is a pointer to the Endpoint event occured in core. |
References XUsbPsu::eps.
s32 XUsbPsu_RecvSetup | ( | struct XUsbPsu * | InstancePtr | ) |
#include <xusbpsu_controltransfers.c>
Initiates DMA on Control Endpoint 0 to receive Setup packet.
InstancePtr | is a pointer to the XUsbPsu instance. |
References XUsbPsu::eps, XUsbPsu_Ep::EpStatus, and XUsbPsu_GetEpParams().
Referenced by XUsbPsu_Ep0StatusDone().
void XUsbSleep | ( | u32 | USeconds | ) |
#include <xusbpsu_controltransfers.c>
API for Sleep routine.
USeconds | is time in MicroSeconds. |
Referenced by XUsbPsu_Wait_Clear_Timeout(), and XUsbPsu_Wait_Set_Timeout().