![]() |
usbpsu
Xilinx SDK Drivers API Documentation
|
This file contains the implementation of the storage specific chapter 9 code for the example.
MODIFICATION HISTORY:
Ver Who Date Changes
1.0 sg 06/06/16 First release *
Data Structures | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
struct | __attribute__ |
USB Standard Control Request. More... | |
Functions | |
u32 | XUsbPsu_Ch9SetupDevDescReply (struct XUsbPsu *InstancePtr, u8 *BufPtr, u32 BufLen) |
This function returns the device descriptor for the device. More... | |
u32 | XUsbPsu_Ch9SetupCfgDescReply (struct XUsbPsu *InstancePtr, u8 *BufPtr, u32 BufLen) |
This function returns the configuration descriptor for the device. More... | |
u32 | XUsbPsu_Ch9SetupStrDescReply (struct XUsbPsu *InstancePtr, u8 *BufPtr, u32 BufLen, u8 Index) |
This function returns a string descriptor for the given index. More... | |
u32 | XUsbPsu_Ch9SetupBosDescReply (u8 *BufPtr, u32 BufLen) |
This function returns the BOS descriptor for the device. More... | |
s32 | XUsbPsu_SetConfiguration (struct XUsbPsu *InstancePtr, SetupPacket *Ctrl) |
Changes State of Core to USB configured State. More... | |
s32 | XUsbPsu_SetConfigurationApp (struct XUsbPsu *InstancePtr, SetupPacket *SetupData) |
This function is called by Chapter9 handler when SET_CONFIGURATION command is received from Host. More... | |
u32 XUsbPsu_Ch9SetupBosDescReply | ( | u8 * | BufPtr, |
u32 | BufLen | ||
) |
This function returns the BOS descriptor for the device.
BufPtr | is the pointer to the buffer that is to be filled with the descriptor. |
BufLen | is the size of the provided buffer. |
u32 XUsbPsu_Ch9SetupCfgDescReply | ( | struct XUsbPsu * | InstancePtr, |
u8 * | BufPtr, | ||
u32 | BufLen | ||
) |
This function returns the configuration descriptor for the device.
BufPtr | is the pointer to the buffer that is to be filled with the descriptor. |
BufLen | is the size of the provided buffer. |
u32 XUsbPsu_Ch9SetupDevDescReply | ( | struct XUsbPsu * | InstancePtr, |
u8 * | BufPtr, | ||
u32 | BufLen | ||
) |
This function returns the device descriptor for the device.
BufPtr | is pointer to the buffer that is to be filled with the descriptor. |
BufLen | is the size of the provided buffer. |
u32 XUsbPsu_Ch9SetupStrDescReply | ( | struct XUsbPsu * | InstancePtr, |
u8 * | BufPtr, | ||
u32 | BufLen, | ||
u8 | Index | ||
) |
This function returns a string descriptor for the given index.
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. |
s32 XUsbPsu_SetConfiguration | ( | struct XUsbPsu * | InstancePtr, |
SetupPacket * | Ctrl | ||
) |
Changes State of Core to USB configured State.
InstancePtr | is a pointer to the XUsbPsu instance. |
Ctrl | is a pointer to the Setup packet data. |
s32 XUsbPsu_SetConfigurationApp | ( | struct XUsbPsu * | InstancePtr, |
SetupPacket * | SetupData | ||
) |
This function is called by Chapter9 handler when SET_CONFIGURATION command is received from Host.
InstancePtr | is pointer to XUsbPsu instance. |
SetupData | is the setup packet received from Host. |