![]() |
usb
Xilinx SDK Drivers API Documentation
|
This file contains the USB Chapter 9 related functions.
MODIFICATION HISTORY:
Ver Who Date Changes
1.00a hvm 2/22/07 First release 1.01a hvm 5/30/07 Moved the USB class specific command processing to application files. 3.00a hvm 11/18/09 Updated to use HAL processor APIs. XUsb_mReadReg is renamed to XUsb_ReadReg and XUsb_mWriteReg is renamed to XUsb_WriteReg. 3.02a hvm 08/16/10 Updated with the little endian support changes. 4.00a hvm 12/20/10 Updated SetInterface function with microphone case support.
Functions | |
| void | EP0ProcessOutToken (XUsb *InstancePtr) |
| This routine is called when an OUT transaction for Endpoint Zero is received. More... | |
| void | EP0ProcessInToken (XUsb *InstancePtr) |
| This routine is called when IN transaction for Endpoint Zero is received. More... | |
| int | Chapter9 (XUsb *InstancePtr) |
| This routine is called when a chapter 9 command is received. More... | |
| int | ExecuteCommand (XUsb *InstancePtr) |
| This function executes the chapter 9 command processing. More... | |
| void | GetInterface (XUsb *InstancePtr) |
| This function responds to the GET_INTERFACE command. More... | |
| void | SetInterface (XUsb *InstancePtr) |
| This function responds to the SET_INTERFACE command. More... | |
| void | SetupControlWriteStatusStage (XUsb *InstancePtr) |
| This function sets the basic Control status words. More... | |
| void | GetStatus (XUsb *InstancePtr) |
| This routine is called when a GET_STATUS command is received. More... | |
| void | GetDescriptor (XUsb *InstancePtr) |
| This routine is called when a GET_DESCRIPTOR command is received. More... | |
| void | SetDescriptor (XUsb *InstancePtr) |
| This routine is called when a SET_DESCRIPTOR command is received. More... | |
| void | GetConfiguration (XUsb *InstancePtr) |
| This routine is called when a GET_CONFIGURATION command is received. More... | |
| void | SetConfiguration (XUsb *InstancePtr) |
| This routine is called when a SET_CONFIGURATION command is received. More... | |
| void | SetClearFeature (XUsb *InstancePtr, int flag) |
| This routine is called when a SET_FEATURE or a CLEAR_FEATURE command is received. More... | |
| void | LoadEP0 (XUsb *InstancePtr) |
| This routine copies the EP0 related data to the DPRAM. More... | |
| int Chapter9 | ( | XUsb * | InstancePtr | ) |
This routine is called when a chapter 9 command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
References XUsb_Config::BaseAddress, XUsb::Config, and XUSB_SETUP_PKT_ADDR_OFFSET.
| void EP0ProcessInToken | ( | XUsb * | InstancePtr | ) |
This routine is called when IN transaction for Endpoint Zero is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void EP0ProcessOutToken | ( | XUsb * | InstancePtr | ) |
This routine is called when an OUT transaction for Endpoint Zero is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| int ExecuteCommand | ( | XUsb * | InstancePtr | ) |
This function executes the chapter 9 command processing.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void GetConfiguration | ( | XUsb * | InstancePtr | ) |
This routine is called when a GET_CONFIGURATION command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void GetDescriptor | ( | XUsb * | InstancePtr | ) |
This routine is called when a GET_DESCRIPTOR command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void GetInterface | ( | XUsb * | InstancePtr | ) |
This function responds to the GET_INTERFACE command.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void GetStatus | ( | XUsb * | InstancePtr | ) |
This routine is called when a GET_STATUS command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void LoadEP0 | ( | XUsb * | InstancePtr | ) |
This routine copies the EP0 related data to the DPRAM.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void SetClearFeature | ( | XUsb * | InstancePtr, |
| int | flag | ||
| ) |
This routine is called when a SET_FEATURE or a CLEAR_FEATURE command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| flag | specifies whether it is a SET_FEATURE (TRUE)or a CLEAR_FEATURE (FALSE) command. |
| void SetConfiguration | ( | XUsb * | InstancePtr | ) |
This routine is called when a SET_CONFIGURATION command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void SetDescriptor | ( | XUsb * | InstancePtr | ) |
This routine is called when a SET_DESCRIPTOR command is received.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
References XUsb_EpStall().
| void SetInterface | ( | XUsb * | InstancePtr | ) |
This function responds to the SET_INTERFACE command.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
| void SetupControlWriteStatusStage | ( | XUsb * | InstancePtr | ) |
This function sets the basic Control status words.
| InstancePtr | is a pointer to the XUsb instance of the controller. |
References XUsb_Config::BaseAddress, XUsb_EpConfig::Buffer0Count, XUsb::Config, XUsb::DeviceConfig, XUsb::EndPointOffset, XUsb_DeviceConfig::Ep, XUSB_BUFFREADY_OFFSET, XUSB_EP_BUF0COUNT_OFFSET, XUSB_EP_CFG_DATA_TOGGLE_MASK, XUsb_ReadReg, and XUsb_WriteReg.