|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.appliancestudio.jbluez.HCIVersion
Data object to represent the version information of a device.
This class is essentially a Java representation of the hci_version
struct in hci_lib.h
, provided by the BlueZ libraries.
The information is represented here in numeric form, as is collected directly from the HCI interface. There are standard mappings between these to "human readable" strings, but these have yet to be implemented. For more information, see the Bluetooth Specification or the source code of the BlueZ libraries. (For example, to translate the manufacturer number to the associated company name, see the bt_compidtostr
function in bluetooth.c
.
Field Summary | |
int |
hci_rev
HCI revision. |
short |
hci_ver
HCI version. |
int |
lmp_subver
Link Manager Protocol sub-version. |
short |
lmp_ver
Link Manager Protocol version. |
int |
manufacturer
Numeric representation of the manufacturer of the HCI device. |
Constructor Summary | |
HCIVersion()
Default constructor. |
|
HCIVersion(int _manufacturer,
short _hci_ver,
int _hci_rev,
short _lmp_ver,
int _lmp_subver)
Constructor which sets all the fields in the class. |
Method Summary | |
java.lang.String |
toString()
Returns a String representation of all the information represented by this object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int manufacturer
bt_compidtostr
function in bluetooth.c
(part of the BlueZ libraries).
public short hci_ver
public int hci_rev
public short lmp_ver
public int lmp_subver
Constructor Detail |
public HCIVersion()
public HCIVersion(int _manufacturer, short _hci_ver, int _hci_rev, short _lmp_ver, int _lmp_subver)
_manufacturer
- _hci_ver
- _hci_rev
- _lmp_ver
- _lmp_subver
- Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |