uint8_t USBHostResetDevice( uint8_t deviceAddress );
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.
None
Return Values |
Description |
USB_SUCCESS |
Success |
USB_UNKNOWN_DEVICE |
Device not found |
USB_ILLEGAL_REQUEST |
Device cannot RESUME unless it is suspended |
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
![]() |