tools/usb_gadget/hid_gadget.py
def SendReport(self, report_id, data):
    """Send a HID report.

    See Device Class Definition for Human Interface Devices (HID) Version 1.11
    section 8.

    Args:
      report_id: Report ID associated with the data.
      data: Contents of the report.
    """
    if report_id == 0:
      self.SendPacket(self._in_endpoint, data)
    else:
      self.SendPacket(self._in_endpoint, struct.pack('B', report_id) + data)
Send a HID report.

    See Device Class Definition for Human Interface Devices (HID) Version 1.11
    section 8.

    Args:
      report_id: Report ID associated with the data.
      data: Contents of the report.
    
Send a HID report.
See Device Class Definition for Human Interface Devices (HID) Version 1.11
section 8.
Send a HID report . See Device Class Definition for Human Interface Devices ( HID ) Version 1 . 11 section 8 .
def SendReport(self, report_id, data):
    if report_id == 0:
      self.SendPacket(self._in_endpoint, data)
    else:
      self.SendPacket(self._in_endpoint, struct.pack('B', report_id) + data)
def SendReport ( self , report_id , data ) : if report_id == 0 : self . SendPacket ( self . _in_endpoint , data ) else : self . SendPacket ( self . _in_endpoint , struct . pack ( 'B' , report_id ) + data )
Send a HID report.
Send a HID report .
"""Send a HID report.

    See Device Class Definition for Human Interface Devices (HID) Version 1.11
    section 8.

    Args:
      report_id: Report ID associated with the data.
      data: Contents of the report.
    """
self
report_id
Report ID associated with the data.
Report ID associated with the data .
data
Contents of the report.
Contents of the report .