code: def read(self):
          
          while len(self.rcv_data) == 0:
              sleep(0)
  
          if self.rcv_data[0] is None:
              raise DAPAccessIntf.DeviceError("Device %s read thread exited" %
                                              self.serial_number)
          return self.rcv_data.pop(0)
docs: read data on the IN endpoint associated to the HID interface