Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
USB_ILLEGAL_REQUEST Device cannot RESUME unless it is suspended
Function
uint8_t USBHostResetDevice( uint8_t deviceAddress )
1.4.2.1.1.14 USBHostResumeDevice Function
This function issues a RESUME to the attached device.
File
usb_host.h
Syntax
uint8_t USBHostResumeDevice(uint8_t deviceAddress);
Description
This function issues a RESUME to the attached device. It can called only if the state machine is in the suspend state.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
Return Values
Return Values Description
USB_SUCCESS Success
USB_UNKNOWN_DEVICE Device not found
USB_ILLEGAL_REQUEST Device cannot RESUME unless it is suspended
Function
uint8_t USBHostResumeDevice( uint8_t deviceAddress )
1.4.2.1.1.15 USBHostSetDeviceConfiguration Function
This function changes the device's configuration.
File
usb_host.h
Syntax
uint8_t USBHostSetDeviceConfiguration(uint8_t deviceAddress, uint8_t configuration);
Description
This function is used by the application to change the device's Configuration. This function must be used instead of
USBHostIssueDeviceRequest(), because the endpoint definitions may change.
To see when the reconfiguration is complete, use the USBHostDeviceStatus() function. If configuration is still in progress,
this function will return USB_DEVICE_ENUMERATING.
Remarks
If an invalid configuration is specified, this function cannot return an error. Instead, the event
USB_UNSUPPORTED_DEVICE will the sent to the application layer and the device will be placed in a holding state with a
USB_HOLDING_UNSUPPORTED_DEVICE error returned by USBHostDeviceStatus().
1.4 Library Interface MLA - USB Library Help Embedded Host API
110
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf