Bitwig Studio Control Surface API
4.0.1
UsbEndpointMatcher.java
1
package
com.bitwig.extension.controller;
2
3
import
com
.
bitwig
.
extension
.
controller
.
api
.
UsbTransferDirection
;
4
import
com
.
bitwig
.
extension
.
controller
.
api
.
UsbTransferType
;
5
6
public
class
UsbEndpointMatcher
extends
UsbMatcher
7
{
8
public
UsbEndpointMatcher
(
9
final
UsbTransferDirection
direction,
10
final
UsbTransferType
transferType,
11
final
String expression,
12
final
int
matchOccurrenceIndex)
13
{
14
super(expression, matchOccurrenceIndex);
15
16
mDirection = direction;
17
mTransferType = transferType;
18
}
19
20
public
UsbEndpointMatcher
(
21
final
UsbTransferDirection
direction,
22
final
UsbTransferType
transferType,
23
final
String expression)
24
{
25
this
(direction, transferType, expression, 1);
26
}
27
28
public
UsbEndpointMatcher
(
final
UsbTransferType
transferType,
final
byte bEndpointAddress)
29
{
30
this
(
UsbTransferDirection
.getForEndpointAddress(bEndpointAddress), transferType,
"bEndpointAddress == "
+ (bEndpointAddress & 0xff));
31
}
32
33
public
UsbTransferDirection
getDirection()
34
{
35
return
mDirection;
36
}
37
38
public
UsbTransferType
getTransferType()
39
{
40
return
mTransferType;
41
}
42
43
private
final
UsbTransferDirection
mDirection;
44
45
private
final
UsbTransferType
mTransferType;
46
}
com
com.bitwig.extension.controller.UsbEndpointMatcher
Definition:
UsbEndpointMatcher.java:6
com.bitwig.extension.controller.UsbMatcher
Definition:
UsbMatcher.java:3
com.bitwig.extension
com.bitwig.extension.controller.api.UsbTransferDirection
Definition:
UsbTransferDirection.java:3
com.bitwig.extension.controller.api
Definition:
AbsoluteHardwarControlBindable.java:1
com.bitwig
com.bitwig.extension.controller.api.UsbTransferType
Definition:
UsbTransferType.java:3
com.bitwig.extension.controller
src
main
java
com
bitwig
extension
controller
UsbEndpointMatcher.java
Copyright © 2014 Bitwig GmbH. All rights reserved.