tools/usb_gadget/hid_gadget.py
def SendReport(self, data):
    """Send a report with this feature's Report ID.

    Args:
      data: Report to send. If necessary the Report ID will be added.

    Raises:
      RuntimeError: If a report cannot be sent at this time.
    """
    if not self.IsConnected():
      raise RuntimeError('Device is not connected.')
    self._gadget.SendReport(self._report_id, data)
Send a report with this feature's Report ID.

    Args:
      data: Report to send. If necessary the Report ID will be added.

    Raises:
      RuntimeError: If a report cannot be sent at this time.
    
Send a report with this feature's Report ID.
Send a report with this feature ' s Report ID .
def SendReport(self, data):
    if not self.IsConnected():
      raise RuntimeError('Device is not connected.')
    self._gadget.SendReport(self._report_id, data)
def SendReport ( self , data ) : if not self . IsConnected ( ) : raise RuntimeError ( 'Device is not connected.' ) self . _gadget . SendReport ( self . _report_id , data )
Send a report with this feature's Report ID.
Send a report with this feature ' s Report ID .
"""Send a report with this feature's Report ID.

    Args:
      data: Report to send. If necessary the Report ID will be added.

    Raises:
      RuntimeError: If a report cannot be sent at this time.
    """
If a report cannot be sent at this time.
If a report cannot be sent at this time .
RuntimeError
self
data
Report to send. If necessary the Report ID will be added.
Report to send . If necessary the Report ID will be added .