Home | History | Annotate | Download | only in mbim_compliance

Lines Matching defs:device

12 # Device types.
23 """ Context of device under test. """
27 Initialize the MBIM modem device test context.
33 # Find the device to be tested
35 # Set the device vendor/product ID in the test context
45 # Once a device has been discovered, and its USB descriptors have been
46 # parsed, this property determines whether the discovered device is an
90 Find and initialize the MBIM modem device under consideration.
94 @returns The PyUSB handle to the device.
97 # If a specific device VID/PID is sent, we'll use that info to find
98 # the modem, else we'll try to find any MBIM CDC device attached
100 device = core.find(idVendor=id_vendor, idProduct=id_product)
101 if device is None:
104 'Device not found with VID: %04X, PID: %04X. ' % (
107 # Find device based on the communication class interface descriptor
110 custom_match=(lambda device: self._device_interface_matcher(
111 device,
118 'MBIM device not found. ')
122 'More than one MBIM device found: %d. ' %
125 device = devices[0]
126 return device
130 device,
135 Find the USB device with a specific set of interface parameters.
141 @param device: USB device under consideration.
148 @returns True if the device's interface descriptor matches,
151 for cfg in device:
166 @param descriptors: Raw descriptor set obtained from the device.
181 Refer to the idVendor for the device under test.
192 Refer to the idProduct for the device under test.
201 def device(self):
203 Refer to the device under test.
205 @returns The usb.core.Device object.