ratbag_emu.endpoint module¶
-
class
ratbag_emu.endpoint.
Endpoint
(owner, rdesc, number)¶ Bases:
hidtools.uhid.UHIDDevice
Represents a device endpoint
A HID device is created for each endpoint. The enpoint can be used to receive and send data
- Parameters
-
create_report
(action, global_data=None, skip_empty=True)¶ Converts action into HID report
Converts action in HID report according to the report descriptor and sends it.
-
send
(data)¶ Send data
Routine used to send a HID report.