Bitwig Studio Control Surface API
5.0.11
|
Public Member Functions | |
UsbDeviceMatcher (final String name, final String expression, final UsbConfigurationMatcher configurationMatcher) | |
UsbDeviceMatcher (final String name, final String expression, final UsbInterfaceMatcher... interfaceMatchers) | |
String | getExpression () |
UsbConfigurationMatcher | getConfigurationMatcher () |
![]() | |
String | getName () |
Additional Inherited Members | |
![]() | |
HardwareDeviceMatcher (final String name) | |
Defines information needed to identify suitable USB devices for use by an extension.
UsbDeviceMatcher | ( | final String | name, |
final String | expression, | ||
final UsbConfigurationMatcher | configurationMatcher | ||
) |
Creates a UsbDeviceMatcher that matches a USB device that matches the supplied expression and has a configuration matching the supplied UsbConfigurationMatcher.
name | A human friendly name that describes the kind of devices this matcher tries to match. |
expression | An expression that can be used on the USB device descriptor to decide if the device matches. Variables in the expression can refer to the following fields of the device descriptor: |
For example to match a device that has vendor id 0x10 product id 0x20 the expression would be:
"idVendor == 0x10 && idProduct == 0x20"
configurationMatcher | Object that tries to match a configuration on the device that it can use. |
UsbDeviceMatcher | ( | final String | name, |
final String | expression, | ||
final UsbInterfaceMatcher... | interfaceMatchers | ||
) |
Creates a UsbDeviceMatcher that matches a USB device that matches the supplied expression and has a configuration matching the supplied UsbInterfaceMatchers.
name | A human friendly name that describes the kind of devices this matcher tries to match. |
expression | An expression that can be used on the USB device descriptor to decide if the device matches. Variables in the expression can refer to the following fields of the device descriptor: |
For example to match a device that has vendor id 0x10 product id 0x20 the expression would be:
"idVendor == 0x10 && idProduct == 0x20"
interfaceMatchers | UsbInterfaceMatchers that define the USB interface descriptors that a configuration of the device needs to have. |
UsbConfigurationMatcher getConfigurationMatcher | ( | ) |
Object that tries to match a configuration on the device that it can use.
String getExpression | ( | ) |
An expression that can be used on the USB device descriptor to decide if the device matches. Variables in the expression can refer to the following fields of the device descriptor:
For example to match a device that has vendor id 0x10 product id 0x20 the expression would be:
"idVendor == 0x10 && idProduct == 0x20"