Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
org.direct_bt.BTMode Enum Reference

Bluetooth adapter operating mode. More...

Collaboration diagram for org.direct_bt.BTMode:

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
 

Detailed Description

Bluetooth adapter operating mode.

See get(byte) for its native integer mapping.

Since
2.0.0

Definition at line 34 of file BTMode.java.

Constructor & Destructor Documentation

◆ BTMode()

org.direct_bt.BTMode.BTMode ( final byte  v)

Definition at line 75 of file BTMode.java.

Member Function Documentation

◆ get() [1/2]

static BTMode org.direct_bt.BTMode.get ( final String  name) throws IllegalArgumentException
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.

Parameters
namethe string name to be mapped to a constant of this enum type.
Returns
the corresponding constant of this enum type.
Exceptions
IllegalArgumentExceptionif 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.

Here is the caller graph for this function:

◆ get() [2/2]

static BTMode org.direct_bt.BTMode.get ( final byte  value)
static

Maps the specified integer value to a constant of BTMode.

Parameters
valuethe integer value to be mapped to a constant of this enum type.
Returns
the corresponding constant of this enum type, using NONE if not supported.

Definition at line 66 of file BTMode.java.

Member Data Documentation

◆ NONE

org.direct_bt.BTMode.NONE =((byte)0)

Zero mode, neither DUAL, BREDR nor LE.

Usually an error.

Definition at line 36 of file BTMode.java.

◆ DUAL

org.direct_bt.BTMode.DUAL =((byte)1)

Dual Bluetooth mode, i.e.

BREDR + LE.

Definition at line 38 of file BTMode.java.

◆ BREDR

org.direct_bt.BTMode.BREDR =((byte)2)

BREDR only Bluetooth mode.

Definition at line 40 of file BTMode.java.

◆ LE

org.direct_bt.BTMode.LE =((byte)3)

LE only Bluetooth mode.

Definition at line 42 of file BTMode.java.

◆ value

final byte org.direct_bt.BTMode.value

Definition at line 44 of file BTMode.java.


The documentation for this enum was generated from the following file: