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

This function places the device back in the RESET state, to issue RESET signaling. It can be called only if the state machine is not in the DETACHED state.

Preconditions

None

Return Values
Return Values 
Description 
USB_SUCCESS 
Success 
USB_UNKNOWN_DEVICE 
Device not found 
USB_ILLEGAL_REQUEST 
Device cannot RESUME unless it is suspended 
Remarks

In order to do a full clean-up, the state is set back to STATE_DETACHED rather than a reset state. The ATTACH interrupt will automatically be triggered when the module is re-enabled, and the proper reset will be performed.

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