com.appliancestudio.jbluez
Class HCIVersion
java.lang.Object
|
+--com.appliancestudio.jbluez.HCIVersion
- public class HCIVersion
- extends java.lang.Object
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
.
- Version:
- 1.0
- Author:
- Edward Kay, ed.kay@appliancestudio.com
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 |
manufacturer
public int manufacturer
- Numeric representation of the manufacturer of the HCI device. To convert to a string, see the Bluetooth Specification or the
bt_compidtostr
function in bluetooth.c
(part of the BlueZ libraries).
hci_ver
public short hci_ver
- HCI version.
hci_rev
public int hci_rev
- HCI revision.
lmp_ver
public short lmp_ver
- Link Manager Protocol version.
lmp_subver
public int lmp_subver
- Link Manager Protocol sub-version.
HCIVersion
public HCIVersion()
- Default constructor.
HCIVersion
public HCIVersion(int _manufacturer,
short _hci_ver,
int _hci_rev,
short _lmp_ver,
int _lmp_subver)
- Constructor which sets all the fields in the class. This is provided since when creating a new HCIVersion object in the native code (namely C), it is much more efficient since we do not have to ask the JVM for pointers to each individual field.
- Parameters:
_manufacturer
- _hci_ver
- _hci_rev
- _lmp_ver
- _lmp_subver
-
toString
public java.lang.String toString()
- Returns a String representation of all the information represented by this object.
- Overrides:
toString
in class java.lang.Object
- Returns:
- A String representation of all the information represented by this
object.
Copyright © 2002 The Appliance Studio Limited