File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 72
72
//| in_report_lengths=(5, 2),
73
73
//| out_report_lengths=(6, 0),
74
74
//| )
75
+ //|
76
+ //| The HID device is able to wake up a suspended (sleeping) host computer.
77
+ //| See `send_report()` for details.
75
78
//| """
76
79
//| ...
77
80
//| KEYBOARD: Device
@@ -166,6 +169,16 @@ STATIC mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args
166
169
//| """Send an HID report. If the device descriptor specifies zero or one report id's,
167
170
//| you can supply `None` (the default) as the value of ``report_id``.
168
171
//| Otherwise you must specify which report id to use when sending the report.
172
+ //|
173
+ //| If the USB host is suspended (sleeping), then `send_report()` will request that the host wake up.
174
+ //| The `report` itself will be discarded, to prevent unwanted extraneous characters,
175
+ //| mouse clicks, etc.
176
+ //|
177
+ //| Note: Host operating systems allow enabling and disabling specific devices
178
+ //| and kinds of devices to do wakeup.
179
+ //| The defaults are different for different operating systems.
180
+ //| For instance, on Linux, only the primary keyboard may be enabled.
181
+ //| In addition, there may be USB wakeup settings in the host computer BIOS/UEFI.
169
182
//| """
170
183
//| ...
171
184
STATIC mp_obj_t usb_hid_device_send_report (size_t n_args , const mp_obj_t * pos_args , mp_map_t * kw_args ) {
You can’t perform that action at this time.
0 commit comments