Home | History | Annotate | Download | only in usb

Lines Matching defs:parent

17                parent=None):
30 @param parent: Optional parent UsbDevice. A parent device is a device that
40 self._parent = parent
83 def parent(self):
85 Returns the parent device of this device.
88 @returns the parent or None.
92 @parent.setter
93 def parent(self, value):
95 Sets the parent device of this device.
98 @param value the new parent.
119 Gets the parent device at the specified level.
130 device's parent at level 1 to locate the port that should be power cycled.
132 @param level the level of the parent to return.
133 @returns A UsbDevice instance of the parent at the specified level.
143 device = device.parent
149 return "%s (%s), bus=%s, port=%s, parent=%s" % (
150 self._product, self.vid_pid, self._bus, self._port, self.parent)