Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Bluetooth adapter operating mode. More...
Public Member Functions | |
BTMode (final byte v) | |
Static Public Member Functions | |
static BTMode | get (final byte value) |
Maps the specified integer value to a constant of BTMode . More... | |
static BTMode | get (final String name) throws IllegalArgumentException |
Maps the specified name to a constant of BTMode. More... | |
Public Attributes | |
BREDR =((byte)2) | |
BREDR only Bluetooth mode. More... | |
DUAL =((byte)1) | |
Dual Bluetooth mode, i.e. More... | |
LE =((byte)3) | |
LE only Bluetooth mode. More... | |
NONE =((byte)0) | |
Zero mode, neither DUAL, BREDR nor LE. More... | |
final byte | value |
Bluetooth adapter operating mode.
See get(byte)
for its native integer mapping.
Definition at line 34 of file BTMode.java.
org.direct_bt.BTMode.BTMode | ( | final byte | v | ) |
Definition at line 75 of file BTMode.java.
|
static |
Maps the specified name to a constant of BTMode.
Implementation simply returns valueOf(String)
. This maps the constant names itself to their respective constant.
name | the string name to be mapped to a constant of this enum type. |
IllegalArgumentException | if the specified name can't be mapped to a constant of this enum type as described above. |
Definition at line 57 of file BTMode.java.
|
static |
Maps the specified integer value to a constant of BTMode
.
value | the integer value to be mapped to a constant of this enum type. |
NONE
if not supported. Definition at line 66 of file BTMode.java.
org.direct_bt.BTMode.NONE =((byte)0) |
org.direct_bt.BTMode.DUAL =((byte)1) |
org.direct_bt.BTMode.BREDR =((byte)2) |
BREDR only Bluetooth mode.
Definition at line 40 of file BTMode.java.
org.direct_bt.BTMode.LE =((byte)3) |
LE only Bluetooth mode.
Definition at line 42 of file BTMode.java.
final byte org.direct_bt.BTMode.value |
Definition at line 44 of file BTMode.java.