(self)
reset the FTDI device
reset the FTDI device
reset the FTDI device
def _resetFTDI(self):
        """ reset the FTDI device
        """
        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)
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 )