Re: return value of getDeviceClassMajor
site_archiver@lists.apple.com Delivered-To: bluetooth-dev@lists.apple.com Am 31.01.2006 um 17:33 schrieb Elliotte Harold: /System/Library/Frameworks/IOBluetooth.framework/Headers/Bluetooth.h: _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com 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. // 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 // +- Information smime.p7s
participants (1)
-
Christian Klein