code: def _resetFTDI(self):
          
          if not self._isFTDI:
              return
          txdir = 0           # 0:OUT, 1:IN
          req_type = 2        # 0:std, 1:class, 2:vendor
          recipient = 0       # 0:device, 1:interface, 2:endpoint, 3:other
          req_type = (txdir << 7) + (req_type << 5) + recipient
          self.device.ctrl_transfer(
              bmRequestType=req_type,
              bRequest=0,     # RESET
              wValue=0,       # RESET
              wIndex=1,
              data_or_wLength=0)
docs: reset the FTDI device