usbpsu: xusbpsu_endpoint.c File Reference

| usbpsu Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xusbpsu_endpoint.c File Reference

## Functions
struct XUsbPsu_EpParams * | XUsbPsu_GetEpParams (struct XUsbPsu *InstancePtr)
| Returns zeroed parameters to be used by Endpoint commands. More...
u32 | XUsbPsu_EpGetTransferIndex (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir)
| Returns Transfer Index assigned by Core for an Endpoint transfer. More...
s32 | XUsbPsu_SendEpCmd (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir, u32 Cmd, struct XUsbPsu_EpParams *Params)
| Sends Endpoint command to Endpoint. More...
s32 | XUsbPsu_StartEpConfig (struct XUsbPsu *InstancePtr, u32 UsbEpNum, u8 Dir)
| Sends Start New Configuration command to Endpoint. More...
s32 | XUsbPsu_SetEpConfig (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir, u16 Size, u8 Type, u8 Restore)
| Sends Set Endpoint Configuration command to Endpoint. More...
s32 | XUsbPsu_SetXferResource (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir)
| Sends Set Transfer Resource command to Endpoint. More...
s32 | XUsbPsu_EpEnable (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir, u16 Maxsize, u8 Type, u8 Restore)
| Enables Endpoint for sending/receiving data. More...
s32 | XUsbPsu_EpDisable (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir)
| Disables Endpoint. More...
s32 | XUsbPsu_EnableControlEp (struct XUsbPsu *InstancePtr, u16 Size)
| Enables USB Control Endpoint i.e., EP0OUT and EP0IN of Core. More...
void | XUsbPsu_InitializeEps (struct XUsbPsu *InstancePtr)
| Initializes Endpoints. More...
void | XUsbPsu_StopTransfer (struct XUsbPsu *InstancePtr, u8 UsbEpNum, u8 Dir, u8 Force)
| Stops transfer on Endpoint. More...
void | XUsbPsu_SaveEndpointState (struct XUsbPsu *InstancePtr, struct XUsbPsu_Ep *Ept)
| Query endpoint state and save it in EpSavedState. More...
void | XUsbPsu_ClearStalls (struct XUsbPsu *InstancePtr)
| Clears Stall on all endpoints. More...
s32 | XUsbPsu_EpBufferSend (struct XUsbPsu *InstancePtr, u8 UsbEp, u8 *BufferPtr, u32 BufferLen)
| Initiates DMA to send data on endpoint to Host. More...
s32 | XUsbPsu_EpBufferRecv (struct XUsbPsu *InstancePtr, u8 UsbEp, u8 *BufferPtr, u32 Length)
| Initiates DMA to receive data on Endpoint from Host. More...
void | XUsbPsu_EpSetStall (struct XUsbPsu *InstancePtr, u8 Epnum, u8 Dir)
| Stalls an Endpoint. More...
void | XUsbPsu_EpClearStall (struct XUsbPsu *InstancePtr, u8 Epnum, u8 Dir)
| Clears Stall on an Endpoint. More...
void | XUsbPsu_SetEpHandler (struct XUsbPsu *InstancePtr, u8 Epnum, u8 Dir, void(*Handler)(void *, u32, u32))
| Sets an user handler to be called after data is sent/received by an Endpoint. More...
s32 | XUsbPsu_IsEpStalled (struct XUsbPsu *InstancePtr, u8 Epnum, u8 Dir)
| Returns status of endpoint - Stalled or not. More...
void | XUsbPsu_EpXferComplete (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event)
| Checks the Data Phase and calls user Endpoint handler. More...
void | XUsbPsu_EpXferNotReady (struct XUsbPsu *InstancePtr, const struct XUsbPsu_Event_Epevt *Event)
| For Isochronous transfer, get the microframe time and calls respective Endpoint handler. More...