Pavol Rusnak
0883a7e72f
stmhal: Implement SNAK/CNAK mechanism for USB HID receive.
...
This implements flow control in case user does not call recv method often
enough (it tells host side to stop sending more data).
2017-01-19 12:35:09 +11:00
Pavol Rusnak
89f2b62016
stmhal: Fix USB HID receive not receiving the first packet.
2017-01-19 12:34:45 +11:00
Philip Potter
eb239b8398
stmhal/usb: Add support to receive USB HID messages from host.
2016-10-04 15:38:01 +11:00
Tony Abboud
8d8fdcb4be
stmhal: add option to query for the current usb mode
...
Fetch the current usb mode and return a string representation when
pyb.usb_mode() is called with no args. The possible string values are interned
as qstr's. None will be returned if an incorrect mode is set.
2015-09-03 23:30:43 +01:00
Damien George
55d6218b9a
stmhal: Properly define pyb.usb_mode() semantics.
2015-02-13 14:02:51 +00:00
Damien George
d39c7aa517
stmhal: Add Python-configurable USB HID mode.
...
Different HID modes can be configured in Python. You can either use
predefined mouse or keyboard, or write your own report descriptor.
2015-02-13 14:02:51 +00:00
Damien George
b384bcc5de
stmhal: Remove unused usbdev files, and move used ones up a dir.
...
The unused files are from the ST demos for different USB classes and are
not needed for the stmhal port.
2015-02-13 14:02:51 +00:00