| usbps Vitis Drivers API Documentation

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

- Data Structures
- Data Fields

Data Fields
XUsbPs_EpSetup Struct Reference

Data structures used to configure endpoints. More...

## Data Fields
u32 | Type
| Endpoint type: More...
u32 | NumBufs
| Number of buffers to be handled by this endpoint. More...
u32 | BufSize
| Buffer size. More...
u16 | MaxPacketSize
| Maximum packet size for this endpoint. More...

## Detailed Description

Data structures used to configure endpoints.

## Field Documentation

u32 XUsbPs_EpSetup::BufSize

Buffer size.

Only relevant for OUT (receive) Endpoints.

Referenced by main(), XUsbPs_EpBufferReceive(), and XUsbPs_EpGetData().

u16 XUsbPs_EpSetup::MaxPacketSize

Maximum packet size for this endpoint.

This number will define the maximum number of bytes sent on the wire per transaction. Range: 0..1024

Referenced by main(), XUsbPs_EpBufferSendWithZLT(), and XUsbPs_EpGetData().

u32 XUsbPs_EpSetup::NumBufs

Number of buffers to be handled by this endpoint.

Referenced by main(), and XUsbPs_ReconfigureEp().

u32 XUsbPs_EpSetup::Type

Endpoint type:

- XUSBPS_EP_TYPE_CONTROL
- XUSBPS_EP_TYPE_ISOCHRONOUS
- XUSBPS_EP_TYPE_BULK
- XUSBPS_EP_TYPE_INTERRUPT

Referenced by main().