High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Revision:
50:9078969e80e4
Parent:
34:da2ea8cd6216
Child:
53:a1bec483c8e3
diff -r 03a51f0006f8 -r 9078969e80e4 UUID.h
--- a/UUID.h	Fri May 23 17:45:16 2014 +0100
+++ b/UUID.h	Wed May 28 15:25:55 2014 +0100
@@ -22,26 +22,27 @@
 
 class UUID
 {
-private:
-
 public:
-    enum
-    {
+    enum {
         UUID_TYPE_SHORT = 0,    // Short BLE UUID
         UUID_TYPE_LONG  = 1     // Full 128-bit UUID
     };
 
+    static const unsigned LENGTH_OF_LONG_UUID = 16;
+
+public:
     UUID(void);
-    UUID(uint8_t const[16]);
+    UUID(uint8_t const[LENGTH_OF_LONG_UUID]);
     UUID(uint16_t const);
     virtual ~UUID(void);
 
+    ble_error_t update(uint8_t const[LENGTH_OF_LONG_UUID]);
+    ble_error_t update(uint16_t const);
+
+public:
     uint8_t  type;         // UUID_TYPE_SHORT or UUID_TYPE_LONG
-    uint8_t  base[16];     // in case of custom
+    uint8_t  base[LENGTH_OF_LONG_UUID];     // in case of custom
     uint16_t value;        // 16 bit uuid (byte 2-3 using with base)
-
-    ble_error_t update(uint8_t const[16]);
-    ble_error_t update(uint16_t const);
 };
 
 #endif // ifndef __UUID_H__