High level Bluetooth Low Energy API and radio abstraction layer

Dependencies:   nRF51822

Dependents:   LinkNode_LIS3DH

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
Rohit Grover
Date:
Thu May 29 08:57:57 2014 +0100
Parent:
55:8f7ca1ae50d7
Child:
57:29d592d8729f
Commit message:
make members of UUID private; add accessors()

Changed in this revision

UUID.h Show annotated file Show diff for this revision Revisions of this file
--- a/UUID.h	Thu May 29 08:28:02 2014 +0100
+++ b/UUID.h	Thu May 29 08:57:57 2014 +0100
@@ -37,6 +37,17 @@
     virtual ~UUID(void);
 
 public:
+    uint8_t shortOrLong(void) const {
+        return type;
+    }
+    const uint8_t* getBaseUUID(void) const {
+        return base;
+    }
+    uint16_t get16BitUUID(void) const {
+        return value;
+    }
+
+private:
     uint8_t  type;         // UUID_TYPE_SHORT or UUID_TYPE_LONG
     uint8_t  base[LENGTH_OF_LONG_UUID];     // in case of custom
     uint16_t value;        // 16 bit uuid (byte 2-3 using with base)