High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 56:537b8e8f5d60, committed 2014-05-29
- 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)