High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: UUID.h
- Revision:
- 34:da2ea8cd6216
- Parent:
- 27:4a83843f04b0
- Child:
- 50:9078969e80e4
diff -r 6d51a2c69442 -r da2ea8cd6216 UUID.h --- a/UUID.h Thu Apr 03 01:45:33 2014 +0100 +++ b/UUID.h Wed May 21 15:01:14 2014 +0100 @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - + #ifndef __UUID_H__ #define __UUID_H__ @@ -23,25 +23,25 @@ class UUID { private: - + public: enum { UUID_TYPE_SHORT = 0, // Short BLE UUID UUID_TYPE_LONG = 1 // Full 128-bit UUID }; - + UUID(void); UUID(uint8_t const[16]); UUID(uint16_t const); virtual ~UUID(void); - - uint8_t type; // UUID_TYPE_SHORT or UUID_TYPE_LONG - uint8_t base[16]; // in case of custom - uint16_t value; // 16 bit uuid (byte 2-3 using with base) - + + uint8_t type; // UUID_TYPE_SHORT or UUID_TYPE_LONG + uint8_t base[16]; // 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 +#endif // ifndef __UUID_H__