def __init__(self, vid, pid, iface=0, timeout=500): ''' @type vid: string @param vid: Vendor ID of device in hex @type pid: string @param pid: Product ID of device in hex @type iface: number @param iface: Device Interface to use @type timeout: number @param timeout: number of usecs to wait for reply ''' BulkPipe.__init__(self, vid, pid, iface, timeout)
def __init__(self, vid, pid, iface = 0, timeout = 500): ''' @type vid: string @param vid: Vendor ID of device in hex @type pid: string @param pid: Product ID of device in hex @type iface: number @param iface: Device Interface to use @type timeout: number @param timeout: number of usecs to wait for reply ''' BulkPipe.__init__(self, vid, pid, iface, timeout)
def __init__(self, vid, pid, iface=0, wait=1, timeout=500): ''' @type vid: string @param vid: Vendor ID of device in hex @type pid: string @param pid: Product ID of device in hex @type iface: number @param iface: Device Interface to use @type timeout: wait @param timeout: number of usecs to wait before asking for reply @type timeout: number @param timeout: number of usecs to wait for reply to arrive ''' BulkPipe.__init__(self, vid, pid, iface, timeout) self._wait = int(wait) self._session = 0
def __init__(self, vid, pid, iface = 0, wait = 1, timeout = 500): ''' @type vid: string @param vid: Vendor ID of device in hex @type pid: string @param pid: Product ID of device in hex @type iface: number @param iface: Device Interface to use @type timeout: wait @param timeout: number of usecs to wait before asking for reply @type timeout: number @param timeout: number of usecs to wait for reply to arrive ''' BulkPipe.__init__(self, vid, pid, iface, timeout) self._wait = int(wait) self._session = 0