com.appliancestudio.jbluez
Class HCIDeviceInfo

java.lang.Object
  |
  +--com.appliancestudio.jbluez.HCIDeviceInfo

public class HCIDeviceInfo
extends java.lang.Object

This HCIDeviceInfo class is the information relating to a local HCI device. This class is essentially a Java representation of the hci_dev_info struct in the hci.h file provided in the BlueZ libraries. The information stored in the various fields is collected directly from the registers in the Bluetooth device. Therefore, some of it, for example the features is not very "human readable". For more information refer to the Bluetooth specification document, with particular reference to the HCI specification.

Version:
1.0
Author:
Edward Kay, ed.kay@appliancestudio.com

Field Summary
 int acl_mtu
          HCI ACL (asynchronous connection-less) MTU (max transmission unit).
 int acl_pkts
          HCI ACL (asynchronous connection-less) packets transferred.
 com.appliancestudio.jbluez.BTAddress bdaddr
          Bluetooth device address
 int dev_id
          HCI device ID
 com.appliancestudio.jbluez.HCIFeatures features
          HCI device features.
 long flags
          HCI device flags
 long link_mode
          HCI link mode.
 long link_policy
          HCI link policy.
 java.lang.String name
          HCI device name
 long pkt_type
          HCI packet type(s).
 int sco_mtu
          HCI SCO (synchronous connection-oriented) MTU (max transmission unit).
 int sco_pkts
          HCI SCO (synchronous connection-oriented) packets transferred.
 com.appliancestudio.jbluez.HCIDeviceStats stat
          HCI device statistics.
 short type
          HCI device type
 
Constructor Summary
HCIDeviceInfo()
          Default constructor.
HCIDeviceInfo(int _dev_id, java.lang.String _name, com.appliancestudio.jbluez.BTAddress _bdaddr, long _flags, short _type, com.appliancestudio.jbluez.HCIFeatures _features, long _pkt_type, long _link_policy, long _link_mode, int _acl_mtu, int _acl_pkts, int _sco_mtu, int _sco_pkts, com.appliancestudio.jbluez.HCIDeviceStats _stat)
          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

dev_id

public int dev_id
HCI device ID


name

public java.lang.String name
HCI device name


bdaddr

public com.appliancestudio.jbluez.BTAddress bdaddr
Bluetooth device address

See Also:
BTAddress

flags

public long flags
HCI device flags


type

public short type
HCI device type


features

public com.appliancestudio.jbluez.HCIFeatures features
HCI device features.


pkt_type

public long pkt_type
HCI packet type(s).


link_policy

public long link_policy
HCI link policy.


link_mode

public long link_mode
HCI link mode.


acl_mtu

public int acl_mtu
HCI ACL (asynchronous connection-less) MTU (max transmission unit).


acl_pkts

public int acl_pkts
HCI ACL (asynchronous connection-less) packets transferred.


sco_mtu

public int sco_mtu
HCI SCO (synchronous connection-oriented) MTU (max transmission unit).


sco_pkts

public int sco_pkts
HCI SCO (synchronous connection-oriented) packets transferred.


stat

public com.appliancestudio.jbluez.HCIDeviceStats stat
HCI device statistics.

See Also:
HCIDeviceStats
Constructor Detail

HCIDeviceInfo

public HCIDeviceInfo()
Default constructor.


HCIDeviceInfo

public HCIDeviceInfo(int _dev_id,
                     java.lang.String _name,
                     com.appliancestudio.jbluez.BTAddress _bdaddr,
                     long _flags,
                     short _type,
                     com.appliancestudio.jbluez.HCIFeatures _features,
                     long _pkt_type,
                     long _link_policy,
                     long _link_mode,
                     int _acl_mtu,
                     int _acl_pkts,
                     int _sco_mtu,
                     int _sco_pkts,
                     com.appliancestudio.jbluez.HCIDeviceStats _stat)
Constructor which sets all the fields in the class. This is provided since when creating a new HCIDeviceInfo 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:
_dev_id -
_name -
_bdaddr -
_flags -
_type -
_features -
_pkt_type -
_link_policy -
_link_mode -
_acl_mtu -
_acl_pkts -
_sco_mtu -
_sco_pkts -
_stat -
Method Detail

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