aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-05-20 13:06:04 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-05-20 13:06:04 +0000
commit3e515cdfa8d8f077c2585c061c6f4a988031c82b (patch)
treec970426170a82fb64a892d1348e6cd9f735ed8cb /Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
parent141d94fa980b6056c1922cbfeb9f5535227331c5 (diff)
downloadlufa-3e515cdfa8d8f077c2585c061c6f4a988031c82b.tar.gz
lufa-3e515cdfa8d8f077c2585c061c6f4a988031c82b.tar.bz2
lufa-3e515cdfa8d8f077c2585c061c6f4a988031c82b.zip
Short UUIDs are measured in bytes, not bits -- update Service Discovery Protocol code so that it can now correctly match against UUIDs in the service table.
Diffstat (limited to 'Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h')
-rw-r--r--Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
index ccbfed41e..7986d5e72 100644
--- a/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
+++ b/Demos/Host/Incomplete/BluetoothHost/Lib/ServiceDiscoveryProtocol.h
@@ -59,7 +59,10 @@
#define SDP_ATTRIBUTE_PROVIDER 0x0002
#define SDP_ATTRIBUTE_AVAILABILITY 0x0008
+ /** Size of a full 128 bit UUID, in bytes */
#define UUID_SIZE_BYTES 16
+
+ /** First 96 bits common to all standadized Bluetooth services */
#define BASE_96BIT_UUID 0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, 0x00, 0x10, 0x00, 0x00
/** Defines a service attribute as a string of characters.
@@ -97,7 +100,7 @@
* \param ... Data to associate with the attribute
*/
#define SERVICE_ATTRIBUTE_LEN32(name, type, size, ...) const ServiceAttributeData32Bit_t name PROGMEM = \
- {.Header = (type | 7), .Size = size, .Data = __VA_ARGS__}
+ {.Header = (type | 7), .Size = size, .Data = __VA_ARGS__}
/** Terminator for a service attribute table of type \ref ServiceAttributeTable_t. */
#define SERVICE_ATTRIBUTE_TABLE_TERMINATOR {.Data = NULL}