Re: return value of getDeviceClassMajor
Re: return value of getDeviceClassMajor
- Subject: Re: return value of getDeviceClassMajor
- From: Christian Klein <email@hidden>
- Date: Wed, 1 Feb 2006 17:55:22 +0100
Am 31.01.2006 um 17:33 schrieb Elliotte Harold:
What is the legal range for values returned by getDeviceClassMajor
in IOBluetoothDevice? Is it 1-31 or 0 to 7968 or something else? In
other words, is it an unsigned 5-bit int or unsigned 13-bit int, or
something else? I've seen both used in practice in other APIs for
working with Bluetooth.
/System/Library/Frameworks/IOBluetooth.framework/Headers/Bluetooth.h:
// Physical layout of the "class of device/service" field (see
Bluetooth Assigned Numbers section 1.2):
//
// 2 2 2 2 1 1 1 1 1 1 1 1 1 1
// 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 <- Bit
Transmission Order
// +---------------+---------------+---------------+
// | octet 3 | octet 2 | octet 1 | <- Octet
Transmission Order
// +---------------+---------------+---------------+
// <------ 11 bits ----->< 5 bits ><- 6 bits ->
// +---------------------+---------+-----------+-+-+
// | Service Classes | Major | Minor | | |
// +-+-+-+-+-+-+-+-+-+-+-+ Device | Device |0|0|
// | | | | | | | |*|*|*| | Class | Class | | |
// +-+-+-+-+-+-+-+-+-+-+-+---------+-----------+-+-+
// | | | | | | | | |
// | | | | | | | + Limited Discoverable +- Format Type//
| | | | | | +- Networking
// | | | | | +- Rendering
// | | | | +- Capturing
// | | | +- Object Transfer
// | | +- Audio
// | +- Telephony
// +- InformationAttachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden