File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change @@ -1222,6 +1222,27 @@ Arguments:
1222
1222
Used by:
1223
1223
- `HTTPVideoDriver `_
1224
1224
1225
+ USBHub
1226
+ ~~~~~~
1227
+
1228
+ A :any: `USBHub ` resource describes an USB hub.
1229
+ There is no corresponding driver, as this resource is only useful to monitor
1230
+ whether the expected USB hubs are detected by an exporter.
1231
+ To control individual ports, use `USBPowerPort `_.
1232
+
1233
+ .. code-block :: yaml
1234
+
1235
+ USBHub :
1236
+ match :
1237
+ ID_PATH : ' pci-0000:02:00.0-usb-0:4:1.0'
1238
+
1239
+
1240
+ Arguments:
1241
+ - match (dict): key and value pairs for a udev match, see `udev Matching `_
1242
+
1243
+ Used by:
1244
+ - none
1245
+
1225
1246
Providers
1226
1247
~~~~~~~~~
1227
1248
Providers describe directories that are accessible by the target over a
Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ def __attrs_post_init__(self):
549
549
exports ["USBSDMuxDevice" ] = USBSDMuxExport
550
550
exports ["USBSDWireDevice" ] = USBSDWireExport
551
551
exports ["USBDebugger" ] = USBGenericExport
552
-
552
+ exports [ "USBHub" ] = USBGenericRemoteExport
553
553
exports ["USBMassStorage" ] = USBGenericExport
554
554
exports ["USBVideo" ] = USBGenericExport
555
555
exports ["USBAudioInput" ] = USBAudioInputExport
Original file line number Diff line number Diff line change @@ -542,6 +542,20 @@ def update(self):
542
542
def path (self ):
543
543
return self .disk_path
544
544
545
+
546
+ @target_factory .reg_resource
547
+ @attr .s (eq = False )
548
+ class USBHub (USBResource ):
549
+ """The USBHub describes a USB hub.
550
+
551
+ This is mainly useful to monitor if all expected hubs are detected.
552
+ """
553
+ def __attrs_post_init__ (self ):
554
+ self .match ['DEVTYPE' ] = 'usb_interface'
555
+ self .match ['DRIVER' ] = 'hub'
556
+ super ().__attrs_post_init__ ()
557
+
558
+
545
559
@target_factory .reg_resource
546
560
@attr .s (eq = False )
547
561
class USBPowerPort (USBResource ):
You can’t perform that action at this time.
0 commit comments