def setFlowControl(self, flowcontrol, xon=-1, xoff=-1): if flowcontrol == FT_FLOW_XON_XOFF and (xon == -1 or xoff == -1): raise ValueError call_ft(_ft.FT_SetFlowControl, self.handle, _ft.USHORT(flowcontrol), _ft.UCHAR(xon), _ft.UCHAR(xoff)) return None
def setDivisor(self, div): """Set the clock divider. The clock will be set to 6e6/(div + 1).""" call_ft(_ft.FT_SetDivisor, self.handle, _ft.USHORT(div)) return None