MODIFICATION HISTORY:
Ver Who Date Changes ----- ---- -------- -------------------------------------------------------- 1.00a jz 10/10/10 First release 2.1 kpc 04/28/14 Removed ununsed functions
#include <stdio.h>
#include "xusbps.h"
Functions | |
int | XUsbPs_CfgInitialize (XUsbPs *InstancePtr, const XUsbPs_Config *ConfigPtr, u32 VirtBaseAddress) |
void | XUsbPs_DeviceReset (XUsbPs *InstancePtr) |
int | XUsbPs_Reset (XUsbPs *InstancePtr) |
int | XUsbPs_Suspend (const XUsbPs *InstancePtr) |
int | XUsbPs_Resume (const XUsbPs *InstancePtr) |
int | XUsbPs_RequestHostResume (const XUsbPs *InstancePtr) |
int | XUsbPs_SetDeviceAddress (XUsbPs *InstancePtr, u8 Address) |
|
This function initializes a XUsbPs instance/driver. The initialization entails:
|
|
This function performs device reset, device is stopped at the end.
|
|
USB Assert Resume
|
|
This function resets the USB device. All the configuration registers are reset to their default values. The function waits until the reset operation is complete or for a certain duration within which the reset operation is expected to be completed.
|
|
USB Resume If the USB controller is suspended, its operation is resumed when any non-idle signaling is received on its upstream facing port.
|
|
This functions sets the controller's DEVICE address. It also sets the advance bit so the controller will wait for the next IN-ACK before the new address takes effect.
|
|
USB Suspend In order to conserve power, USB devices automatically enter the suspended state when the device has observed no bus traffic for a specified period. When suspended, the USB device maintains any internal status, including its address and configuration. Attached devices must be prepared to suspend at any time they are powered, regardless of if they have been assigned a non-default address, are configured, or neither. Bus activity may cease due to the host entering a suspend mode of its own. In addition, a USB device shall also enter the suspended state when the hub port it is attached to is disabled. A USB device exits suspend mode when there is bus activity. A USB device may also request the host to exit suspend mode or selective suspend by using electrical signaling to indicate remote wakeup. The ability of a device to signal remote wakeup is optional. If the USB device is capable of remote wakeup signaling, the device must support the ability of the host to enable and disable this capability. When the device is reset, remote wakeup signaling must be disabled.
|