usbd-human-interface-device
usbd-human-interface-device copied to clipboard
Is anything required to support remote wakeup?
Anything more required other than setting UsbDeviceBuilder::supports_remote_wakeup(true)
?
Yes, will require implementing suspended and resume in rp2040-hal::usb
and exposing remote wakeup in usb-device
This does the trick: https://github.com/rp-rs/rp-hal/pull/406
Anything more required other than setting
UsbDeviceBuilder::supports_remote_wakeup(true)
?
This just tells the host that the device supports remote wakeup. Then the host will "arm" remote wakeup which you can check with UsbDevice::remote_wakeup_enabled()
.
And finally, as @ithinuel mentioned you'll have to check your wakeup condition, that the device is in USB suspend, remote wakeup is enabled and then call the MCU specific API to actually wake the device/bus again.