ADC Home > Reference Library > Reference > Hardware & Drivers > Bluetooth > Bluetooth Framework Reference
|
IOBluetoothHostController |
Inherits from: | NSObject |
Declared In: |
This class is a representation of a Bluetooth Host Controller Interface that is present on the local computer (either plugged in externally or available internally).
This object can be used to ask a Bluetooth HCI for certain pieces of information, and be used to make it perform certain functions.
Convience routine to get the HCI controller's Bluetooth address as an NSString object.
Gets the current class of device value.
Gets the default HCI controller object.
Gets the default HCI controller object.
Returns the current delegate, if any.
Gets the HCI controller's Bluetooth address.
Get the HCI controller's supported features. See Bluetooth.h for a list of flags.
Gets the "friendly" name of HCI controller.
Gets the RSSI value for a Bluetooth device.
Gets the RSSI value for a Bluetooth device.
Gets the RSSI value for a Bluetooth device.
Sets the current class of device value, for the specified amount of time. Note that the time interval *must* be set and valid. The range of acceptable values is 30-120 seconds. Anything above or below will be rounded up, or down, as appropriate.
Set the delegate that will receive delegate messages, as defined below.
addressAsString |
Convience routine to get the HCI controller's Bluetooth address as an NSString object.
- (NSString *)addressAsString;
Returns NSString *. nil if the address could not be retrieved.
classOfDevice |
Gets the current class of device value.
- (BluetoothClassOfDevice)classOfDevice;
Returns the current class of device value.
controllerWithDelegate |
Gets the default HCI controller object.
See Also:
defaultController
+ (IOBluetoothHostController *)defaultController;
A pointer to the created IOBluetoothHostController object.
defaultController |
Gets the default HCI controller object.
See Also:
controllerWithDelegate
+ (IOBluetoothHostController *)defaultController;
delegate |
Returns the current delegate, if any.
- (id)delegate;
Returns delegate object, otherwise returns nil.
getAddress: |
Gets the HCI controller's Bluetooth address.
- (IOReturn)getAddress:(BluetoothDeviceAddress*)ioDeviceAddress;
sender
Pointer to a BluetoothDeviceAddress structure.
Returns error, if there was one.
getSupportedFeatures: |
Get the HCI controller's supported features. See Bluetooth.h for a list of flags.
- (IOReturn)getSupportedFeatures:(BluetoothHCISupportedFeatures*)features;
Returns error, if there was one.
name |
Gets the "friendly" name of HCI controller.
- (NSString *)name;
Returns NSString with the device name, nil if there is not one or it cannot be read.
readLinkQualityForDevice: |
Gets the RSSI value for a Bluetooth device.
See Also:
readRSSIForDevice
- (IOReturn)readLinkQualityForDevice:(IOBluetoothDevice*)device;
readRSSIForDevice |
Gets the RSSI value for a Bluetooth device.
See Also:
readLinkQualityForDevice:
- (IOReturn)readLinkQualityForDevice:(IOBluetoothDevice*)device;
Returns noErr if the command was successfully sent to the hardware. Results will be returned on the delegate method -linkQualityForDevice.
readRSSIForDevice: |
Gets the RSSI value for a Bluetooth device.
- (IOReturn)readRSSIForDevice:(IOBluetoothDevice*)device;
Returns noErr if the command was successfully sent to the hardware. Results will be returned on the delegate method -RSSIForDevice.
setClassOfDevice:forTimeInterval: |
Sets the current class of device value, for the specified amount of time. Note that the time interval *must* be set and valid. The range of acceptable values is 30-120 seconds. Anything above or below will be rounded up, or down, as appropriate.
- (IOReturn)setClassOfDevice:(BluetoothClassOfDevice)classOfDevice forTimeInterval:(NSTimeInterval)seconds;
Returns the whether setting the class of device value was successful. 0 if success, error code otherwise.
setDelegate: |
Set the delegate that will receive delegate messages, as defined below.
- (void)setDelegate:(id)delegate;
id
The object that should receive delegate messages.
All delegate methods are optional, although it would be a good idea to implement them all.
|
Last Updated: 2008-08-07