![]() |
usb
Xilinx SDK Drivers API Documentation
|
This file contains the constants, typedefs, variables and functions prototypes related to the USB chapter 9 related code.
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. 4.02a bss 4/5/12 Made changes so that the flag LITTLE_ENDIAN gets defined when compiled with ARM CodeSourcery toolchain.
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... | |
void | InitUsbInterface (XUsb *InstancePtr) |
This is the USB initialization function. 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 InitUsbInterface | ( | XUsb * | InstancePtr | ) |
This is the USB initialization function.
This example initializes the device for Mass Storage Application. The following configuration is done.
InstancePtr | is a pointer to the XUsb instance. |
This is the USB initialization function.
The following is the configuration.
InstancePtr | is a pointer to the XUsb instance. |
This example initializes the device for Microphone Application. The following configuration is done.
InstancePtr | is a pointer to the XUsb instance. |
This example initializes the USB device for USB mouse example. The following configuration is done.
InstancePtr | is a pointer to the XUsb instance. |
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.