Direct-BT  2.3.1
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 int v)
 

Static Public Member Functions

static BTMode get (final String name) throws IllegalArgumentException
 Maps the specified name to a constant of BTMode. More...
 
static BTMode get (final int value)
 Maps the specified integer value to a constant of BTMode. More...
 

Public Attributes

 NONE =(0)
 Zero mode, neither DUAL, BREDR nor LE. More...
 
 DUAL =(1)
 Dual Bluetooth mode, i.e. More...
 
 BREDR =(2)
 BREDR only Bluetooth mode. More...
 
 LE =(3)
 LE only Bluetooth mode. More...
 
final int value
 

Detailed Description

Bluetooth adapter operating mode.

See get(int) 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 int  v)

Definition at line 75 of file BTMode.java.

Member Function Documentation

◆ get() [1/2]

static BTMode org.direct_bt.BTMode.get ( final int  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.

◆ get() [2/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:

Member Data Documentation

◆ BREDR

org.direct_bt.BTMode.BREDR =(2)

BREDR only Bluetooth mode.

Definition at line 40 of file BTMode.java.

◆ DUAL

org.direct_bt.BTMode.DUAL =(1)

Dual Bluetooth mode, i.e.

BREDR + LE.

Definition at line 38 of file BTMode.java.

◆ LE

org.direct_bt.BTMode.LE =(3)

LE only Bluetooth mode.

Definition at line 42 of file BTMode.java.

◆ NONE

org.direct_bt.BTMode.NONE =(0)

Zero mode, neither DUAL, BREDR nor LE.

Usually an error.

Definition at line 36 of file BTMode.java.

◆ value

final int org.direct_bt.BTMode.value

Definition at line 44 of file BTMode.java.


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