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.SMPIOCapability Enum Reference

SMP IO Capability value. More...

Collaboration diagram for org.direct_bt.SMPIOCapability:

Public Member Functions

 SMPIOCapability (final byte v)
 

Static Public Member Functions

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

Public Attributes

 DISPLAY_ONLY =((byte)0)
 Display output only, value 0. More...
 
 DISPLAY_YES_NO =((byte)1)
 Display output and boolean confirmation input keys only, value 1. More...
 
 KEYBOARD_DISPLAY =((byte)4)
 Display output and keyboard input, value 4. More...
 
 KEYBOARD_ONLY =((byte)2)
 Keyboard input only, value 2. More...
 
 NO_INPUT_NO_OUTPUT =((byte)3)
 No input not output, value 3. More...
 
 UNSET =((byte)0xff)
 Denoting unset value, i.e. More...
 
final byte value
 

Detailed Description

SMP IO Capability value.

Vol 3, Part H, 2.3.2 IO capabilities

See get(byte) for its native integer mapping.

Since
2.1.0

Definition at line 37 of file SMPIOCapability.java.

Constructor & Destructor Documentation

◆ SMPIOCapability()

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

Definition at line 84 of file SMPIOCapability.java.

Member Function Documentation

◆ get() [1/2]

static SMPIOCapability org.direct_bt.SMPIOCapability.get ( final String  name) throws IllegalArgumentException
static

Maps the specified name to a constant of SMPIOCapability.

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 64 of file SMPIOCapability.java.

Here is the caller graph for this function:

◆ get() [2/2]

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

Maps the specified integer value to a constant of SMPIOCapability.

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

Definition at line 73 of file SMPIOCapability.java.

Member Data Documentation

◆ DISPLAY_ONLY

org.direct_bt.SMPIOCapability.DISPLAY_ONLY =((byte)0)

Display output only, value 0.

Definition at line 39 of file SMPIOCapability.java.

◆ DISPLAY_YES_NO

org.direct_bt.SMPIOCapability.DISPLAY_YES_NO =((byte)1)

Display output and boolean confirmation input keys only, value 1.

Definition at line 41 of file SMPIOCapability.java.

◆ KEYBOARD_ONLY

org.direct_bt.SMPIOCapability.KEYBOARD_ONLY =((byte)2)

Keyboard input only, value 2.

Definition at line 43 of file SMPIOCapability.java.

◆ NO_INPUT_NO_OUTPUT

org.direct_bt.SMPIOCapability.NO_INPUT_NO_OUTPUT =((byte)3)

No input not output, value 3.

Definition at line 45 of file SMPIOCapability.java.

◆ KEYBOARD_DISPLAY

org.direct_bt.SMPIOCapability.KEYBOARD_DISPLAY =((byte)4)

Display output and keyboard input, value 4.

Definition at line 47 of file SMPIOCapability.java.

◆ UNSET

org.direct_bt.SMPIOCapability.UNSET =((byte)0xff)

Denoting unset value, i.e.

not defined.

Definition at line 49 of file SMPIOCapability.java.

◆ value

final byte org.direct_bt.SMPIOCapability.value

Definition at line 51 of file SMPIOCapability.java.


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