Module Import alias identifier Import alias identifier Import alias identifier Import alias identifier ImportFrom alias Assign NameStore Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpLShift AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad ListComp Call NameLoad NameLoad comprehension NameStore NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num body Expr Str Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call NameLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Call NameLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Str Call NameLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpAdd BinOpAdd BinOpAdd Call NameLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Call NameLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Str Call NameLoad BinOpBitAnd BinOpRShift AttributeLoad NameLoad attr Num Num Call NameLoad BinOpBitAnd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad decorator_list decorator_list FunctionDef arguments args defaults body Expr Str Return GeneratorExp Call NameLoad NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Lambda arguments args NameParam defaults AttributeLoad NameLoad attr decorator_list
N/A N/A usb.core core N/A usb.util util N/A usb._objfinalizer _objfinalizer N/A usb.control control itertools groupby N/A __author__ Wander Lairson Costa N/A USBError N/A core USBError N/A CLASS_AUDIO 1 N/A CLASS_COMM 2 N/A CLASS_DATA 10 N/A CLASS_HID 3 N/A CLASS_HUB 9 N/A CLASS_MASS_STORAGE 8 N/A CLASS_PER_INTERFACE 0 N/A CLASS_PRINTER 7 N/A CLASS_VENDOR_SPEC 255 N/A DT_CONFIG 2 N/A DT_CONFIG_SIZE 9 N/A DT_DEVICE 1 N/A DT_DEVICE_SIZE 18 N/A DT_ENDPOINT 5 N/A DT_ENDPOINT_AUDIO_SIZE 9 N/A DT_ENDPOINT_SIZE 7 N/A DT_HID 33 N/A DT_HUB 41 N/A DT_HUB_NONVAR_SIZE 7 N/A DT_INTERFACE 4 N/A DT_INTERFACE_SIZE 9 N/A DT_PHYSICAL 35 N/A DT_REPORT 34 N/A DT_STRING 3 N/A ENDPOINT_ADDRESS_MASK 15 N/A ENDPOINT_DIR_MASK 128 N/A ENDPOINT_IN 128 N/A ENDPOINT_OUT 0 N/A ENDPOINT_TYPE_BULK 2 N/A ENDPOINT_TYPE_CONTROL 0 N/A ENDPOINT_TYPE_INTERRUPT 3 N/A ENDPOINT_TYPE_ISOCHRONOUS 1 N/A ENDPOINT_TYPE_MASK 3 N/A ERROR_BEGIN 500000 N/A MAXALTSETTING 128 N/A MAXCONFIG 8 N/A MAXENDPOINTS 32 N/A MAXINTERFACES 32 N/A RECIP_DEVICE 0 N/A RECIP_ENDPOINT 2 N/A RECIP_INTERFACE 1 N/A RECIP_OTHER 3 N/A REQ_CLEAR_FEATURE 1 N/A REQ_GET_CONFIGURATION 8 N/A REQ_GET_DESCRIPTOR 6 N/A REQ_GET_INTERFACE 10 N/A REQ_GET_STATUS 0 N/A REQ_SET_ADDRESS 5 N/A REQ_SET_CONFIGURATION 9 N/A REQ_SET_DESCRIPTOR 7 N/A REQ_SET_FEATURE 3 N/A REQ_SET_INTERFACE 11 N/A REQ_SYNCH_FRAME 12 N/A TYPE_CLASS 32 N/A TYPE_RESERVED 96 N/A TYPE_STANDARD 0 N/A TYPE_VENDOR 64 Endpoint N/A object N/A N/A Endpoint descriptor object. __init__ N/A N/A self ep N/A N/A N/A N/A self address N/A ep bEndpointAddress N/A N/A self interval N/A ep bInterval N/A N/A self maxPacketSize N/A ep wMaxPacketSize N/A N/A self type N/A N/A util endpoint_type N/A ep bmAttributes N/A N/A Interface N/A object N/A N/A Interface descriptor object. __init__ N/A N/A self intf N/A N/A N/A N/A self alternateSetting N/A intf bAlternateSetting N/A N/A self interfaceNumber N/A intf bInterfaceNumber N/A N/A self iInterface N/A intf iInterface N/A N/A self interfaceClass N/A intf bInterfaceClass N/A N/A self interfaceSubClass N/A intf bInterfaceSubClass N/A N/A self interfaceProtocol N/A intf bInterfaceProtocol N/A N/A self endpoints N/A N/A Endpoint e N/A e intf N/A N/A Configuration N/A object N/A N/A Configuration descriptor object. __init__ N/A N/A self cfg N/A N/A N/A N/A self iConfiguration N/A cfg iConfiguration N/A N/A self maxPower N/A N/A cfg bMaxPower 1 N/A N/A self remoteWakeup N/A N/A N/A cfg bmAttributes 5 1 N/A N/A self selfPowered N/A N/A N/A cfg bmAttributes 6 1 N/A N/A self totalLength N/A cfg wTotalLength N/A N/A self value N/A cfg bConfigurationValue N/A N/A self interfaces N/A N/A list g N/A N/A k g N/A groupby N/A sorted N/A N/A Interface i N/A i cfg key N/A N/A N/A i N/A N/A i interfaceNumber N/A N/A N/A i N/A N/A i alternateSetting N/A N/A DeviceHandle N/A N/A _objfinalizer AutoFinalizedObject N/A __init__ N/A N/A self dev N/A N/A N/A N/A self dev dev N/A N/A self __claimed_interface None N/A _finalize_object N/A N/A self N/A N/A N/A N/A N/A util dispose_resources N/A self dev N/A N/A self dev None N/A bulkWrite N/A N/A self endpoint buffer timeout N/A 100 N/A N/A Perform a bulk write request to the endpoint specified.

            Arguments:
                endpoint: endpoint number.
                buffer: sequence data buffer to write.
                        This parameter can be any sequence type.
                timeout: operation timeout in miliseconds. (default: 100)
                         Returns the number of bytes written.
         N/A N/A N/A N/A self dev write endpoint buffer timeout N/A bulkRead N/A N/A self endpoint size timeout N/A 100 N/A N/A Performs a bulk read request to the endpoint specified.

            Arguments:
                endpoint: endpoint number.
                size: number of bytes to read.
                timeout: operation timeout in miliseconds. (default: 100)
            Return a tuple with the data read.
         N/A N/A N/A N/A self dev read endpoint size timeout N/A interruptWrite N/A N/A self endpoint buffer timeout N/A 100 N/A N/A Perform a interrupt write request to the endpoint specified.

            Arguments:
                endpoint: endpoint number.
                buffer: sequence data buffer to write.
                        This parameter can be any sequence type.
                timeout: operation timeout in miliseconds. (default: 100)
                         Returns the number of bytes written.
         N/A N/A N/A N/A self dev write endpoint buffer timeout N/A interruptRead N/A N/A self endpoint size timeout N/A 100 N/A N/A Performs a interrupt read request to the endpoint specified.

            Arguments:
                endpoint: endpoint number.
                size: number of bytes to read.
                timeout: operation timeout in miliseconds. (default: 100)
            Return a tuple with the data read.
         N/A N/A N/A N/A self dev read endpoint size timeout N/A controlMsg N/A N/A self requestType request buffer value index timeout N/A 0 0 100 N/A N/A Perform a control request to the default control pipe on a device.

        Arguments:
            requestType: specifies the direction of data flow, the type
                         of request, and the recipient.
            request: specifies the request.
            buffer: if the transfer is a write transfer, buffer is a sequence
                    with the transfer data, otherwise, buffer is the number of
                    bytes to read.
            value: specific information to pass to the device. (default: 0)
                   index: specific information to pass to the device. (default: 0)
            timeout: operation timeout in miliseconds. (default: 100)
        Return the number of bytes written.
         N/A N/A N/A N/A self dev ctrl_transfer requestType request wValue value wIndex index data_or_wLength buffer timeout timeout N/A clearHalt N/A N/A self endpoint N/A N/A N/A Clears any halt status on the specified endpoint.

        Arguments:
            endpoint: endpoint number.
         N/A N/A N/A N/A self dev clear_halt endpoint N/A claimInterface N/A N/A self interface N/A N/A N/A Claims the interface with the Operating System.

        Arguments:
            interface: interface number or an Interface object.
         N/A N/A isinstance interface Interface N/A N/A interface N/A interface interfaceNumber N/A N/A N/A util claim_interface N/A self dev interface N/A N/A self __claimed_interface interface N/A releaseInterface N/A N/A self N/A N/A N/A Release an interface previously claimed with claimInterface. N/A N/A N/A util release_interface N/A self dev N/A self __claimed_interface N/A N/A self __claimed_interface -1 N/A reset N/A N/A self N/A N/A N/A Reset the specified device by sending a RESET
            down the port it is connected to. N/A N/A N/A N/A self dev reset N/A resetEndpoint N/A N/A self endpoint N/A N/A N/A Reset all states for the specified endpoint.

        Arguments:
            endpoint: endpoint number.
         N/A N/A N/A self clearHalt endpoint N/A setConfiguration N/A N/A self configuration N/A N/A N/A Set the active configuration of a device.

        Arguments:
            configuration: a configuration value or a Configuration object.
         N/A N/A isinstance configuration Configuration N/A N/A configuration N/A configuration value N/A N/A N/A N/A self dev set_configuration configuration N/A setAltInterface N/A N/A self alternate N/A N/A N/A Sets the active alternate setting of the current interface.

        Arguments:
            alternate: an alternate setting number or an Interface object.
         N/A N/A isinstance alternate Interface N/A N/A alternate N/A alternate alternateSetting N/A N/A N/A N/A self dev set_interface_altsetting N/A self __claimed_interface alternate N/A getString N/A N/A self index length langid N/A None N/A N/A Retrieve the string descriptor specified by index
            and langid from a device.

        Arguments:
            index: index of descriptor in the device.
            length: number of bytes of the string (ignored)
            langid: Language ID. If it is omittedi, will be
                    used the first language.
         N/A N/A N/A N/A N/A util get_string N/A self dev index langid encode ascii N/A getDescriptor N/A N/A self desc_type desc_index length endpoint N/A -1 N/A N/A Retrieves a descriptor from the device identified by the type
        and index of the descriptor.

        Arguments:
            desc_type: descriptor type.
            desc_index: index of the descriptor.
            len: descriptor length.
            endpoint: ignored.
         N/A N/A N/A control get_descriptor N/A self dev length desc_type desc_index N/A detachKernelDriver N/A N/A self interface N/A N/A N/A Detach a kernel driver from the interface (if one is attached,
            we have permission and the operation is supported by the OS)

        Arguments:
            interface: interface number or an Interface object.
         N/A N/A isinstance interface Interface N/A N/A interface N/A interface interfaceNumber N/A N/A N/A N/A self dev detach_kernel_driver interface N/A N/A Device N/A object N/A N/A Device descriptor object __init__ N/A N/A self dev N/A N/A N/A N/A self deviceClass N/A dev bDeviceClass N/A N/A self deviceSubClass N/A dev bDeviceSubClass N/A N/A self deviceProtocol N/A dev bDeviceProtocol N/A N/A self deviceVersion N/A N/A N/A N/A N/A str N/A N/A N/A dev bcdDevice 12 15 N/A str N/A N/A N/A dev bcdDevice 8 15 . N/A str N/A N/A N/A dev bcdDevice 4 15 N/A str N/A N/A dev bcdDevice 15 N/A N/A self devnum None N/A N/A self filename N/A N/A self iManufacturer N/A dev iManufacturer N/A N/A self iProduct N/A dev iProduct N/A N/A self iSerialNumber N/A dev iSerialNumber N/A N/A self idProduct N/A dev idProduct N/A N/A self idVendor N/A dev idVendor N/A N/A self maxPacketSize N/A dev bMaxPacketSize0 N/A N/A self usbVersion N/A N/A N/A N/A N/A str N/A N/A N/A dev bcdUSB 12 15 N/A str N/A N/A N/A dev bcdUSB 8 15 . N/A str N/A N/A N/A dev bcdUSB 4 15 N/A str N/A N/A dev bcdUSB 15 N/A N/A self configurations N/A N/A Configuration c N/A c dev N/A N/A self dev dev N/A open N/A N/A self N/A N/A N/A Open the device for use.

        Return a DeviceHandle object
         N/A N/A DeviceHandle N/A self dev N/A N/A Bus N/A object N/A N/A Bus object. __init__ N/A N/A self devices N/A N/A N/A N/A self dirname N/A N/A self location 0 N/A N/A self devices N/A N/A Device d N/A d devices N/A N/A busses N/A N/A N/A N/A N/A Return a tuple with the usb busses. N/A N/A N/A Bus g N/A N/A k g N/A groupby N/A sorted N/A N/A core find find_all True key N/A N/A N/A d N/A N/A d bus N/A N/A N/A d N/A N/A d bus N/A