summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/machine.USBDevice.rst7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/library/machine.USBDevice.rst b/docs/library/machine.USBDevice.rst
index 5fc716516..a47fda2a2 100644
--- a/docs/library/machine.USBDevice.rst
+++ b/docs/library/machine.USBDevice.rst
@@ -215,6 +215,13 @@ Methods
drivers. Placing a different string at any of these indexes overrides that
string in the built-in driver.
+.. method:: USBDevice.remote_wakeup(self)
+
+ Wake up host if we are in suspend mode and the REMOTE_WAKEUP feature
+ is enabled by the host. This has to be enabled in the USB attributes,
+ and on the host. Returns ``True`` if remote wakeup was enabled and
+ active and the host was woken up.
+
.. method:: USBDevice.submit_xfer(self, ep, buffer /)
Submit a USB transfer on endpoint number ``ep``. ``buffer`` must be