USB Library
USBHostDeviceStatus Function
Syntax
uint8_t USBHostDeviceStatus(
    uint8_t deviceAddress
);
Description

This function returns the current status of a device. If the device is in a holding state due to an error, the error is returned.

Preconditions

None

Return Values
Return Values 
Description 
USB_DEVICE_ATTACHED 
Device is attached and running 
USB_DEVICE_DETACHED 
No device is attached 
USB_DEVICE_ENUMERATING 
Device is enumerating 
USB_HOLDING_OUT_OF_MEMORY 
Not enough heap space available 
USB_HOLDING_UNSUPPORTED_DEVICE 
Invalid configuration or unsupported class 
USB_HOLDING_UNSUPPORTED_HUB 
Hubs are not supported 
USB_HOLDING_INVALID_CONFIGURATION 
Invalid configuration requested 
USB_HOLDING_PROCESSING_CAPACITY 
Processing requirement excessive 
USB_HOLDING_POWER_REQUIREMENT 
Power requirement excessive 
USB_HOLDING_CLIENT_INIT_ERROR 
Client driver failed to initialize 
USB_DEVICE_SUSPENDED 
Device is suspended 
Other 
Device is holding in an error state. The return value indicates the error. 
Remarks

None

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla