コード例 #1
0
    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)
コード例 #2
0
ファイル: QCDM.py プロジェクト: 0xroot/usb-device-fuzzing
    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)
コード例 #3
0
ファイル: MTP.py プロジェクト: wusj/usb-device-fuzzing
    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
コード例 #4
0
ファイル: MTP.py プロジェクト: 0xroot/usb-device-fuzzing
    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