![]() |
usbps
Vitis Drivers API Documentation
|
This file contains the implementation of chapter 9 specific code for the example.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 pm 20/02/20 First release
Functions | |
u32 | XUsbPs_Ch9SetupDevDescReply (u8 *BufPtr, u32 BufLen) |
This function returns the device descriptor for the device. More... | |
u32 | XUsbPs_Ch9SetupCfgDescReply (u8 *BufPtr, u32 BufLen) |
This function returns the configuration descriptor for the device. More... | |
u32 | XUsbPs_Ch9SetupStrDescReply (u8 *BufPtr, u32 BufLen, u8 Index) |
This function returns a string descriptor for the given index. More... | |
void | XUsbPs_SetConfiguration (XUsbPs *InstancePtr, int ConfigIdx) |
Changes State of Core to USB configured State. More... | |
void | XUsbPs_SetConfigurationApp (XUsbPs *InstancePtr, XUsbPs_SetupData *SetupData) |
This function is called by Chapter9 handler when SET_CONFIGURATION command is received from Host. More... | |
void | XUsbPs_SetInterfaceHandler (XUsbPs *InstancePtr, XUsbPs_SetupData *SetupData) |
This function is called by Chapter9 handler when SET_CONFIGURATION command or SET_INTERFACE command is received from Host. More... | |
u32 XUsbPs_Ch9SetupCfgDescReply | ( | u8 * | BufPtr, |
u32 | BufLen | ||
) |
This function returns the configuration descriptor for the device.
InstancePtr | is a pointer to the Usb_DevData instance. |
BufPtr | is the pointer to the buffer that is to be filled with the descriptor. |
BufLen | is the size of the provided buffer. |
u32 XUsbPs_Ch9SetupDevDescReply | ( | u8 * | BufPtr, |
u32 | BufLen | ||
) |
This function returns the device descriptor for the device.
InstancePtr | is a pointer to the Usb_DevData instance. |
BufPtr | is pointer to the buffer that is to be filled with the descriptor. |
BufLen | is the size of the provided buffer. |
u32 XUsbPs_Ch9SetupStrDescReply | ( | u8 * | BufPtr, |
u32 | BufLen, | ||
u8 | Index | ||
) |
This function returns a string descriptor for the given index.
InstancePtr | is a pointer to the Usb_DevData instance. |
BufPtr | is a pointer to the buffer that is to be filled with the descriptor. |
BufLen | is the size of the provided buffer. |
Index | is the index of the string for which the descriptor is requested. |
void XUsbPs_SetConfiguration | ( | XUsbPs * | InstancePtr, |
int | ConfigIdx | ||
) |
Changes State of Core to USB configured State.
InstancePtr | is a pointer to the Usb_DevData instance. |
Ctrl | is a pointer to the Setup packet data. |
void XUsbPs_SetConfigurationApp | ( | XUsbPs * | InstancePtr, |
XUsbPs_SetupData * | SetupData | ||
) |
This function is called by Chapter9 handler when SET_CONFIGURATION command is received from Host.
InstancePtr | is pointer to Usb_DevData instance. |
SetupData | is the setup packet received from Host. |
void XUsbPs_SetInterfaceHandler | ( | XUsbPs * | InstancePtr, |
XUsbPs_SetupData * | SetupData | ||
) |
This function is called by Chapter9 handler when SET_CONFIGURATION command or SET_INTERFACE command is received from Host.
InstancePtr | is pointer to Usb_DevData instance. |
SetupData | is the setup packet received from Host. |