![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
A blue button is always a nice toy ...
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/types.h@28:307f58df778a, 2017-10-01 (annotated)
- Committer:
- hux
- Date:
- Sun Oct 01 12:48:58 2017 +0000
- Revision:
- 28:307f58df778a
A blue button is always a nice toy ...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 28:307f58df778a | 1 | // types.h - declaring some common types |
hux | 28:307f58df778a | 2 | // |
hux | 28:307f58df778a | 3 | // The type identifiers are all begining with capital letter in order to leave |
hux | 28:307f58df778a | 4 | // the lower capital identifiers free for 'overloaded' variable or characteristic |
hux | 28:307f58df778a | 5 | // identifiers. |
hux | 28:307f58df778a | 6 | // |
hux | 28:307f58df778a | 7 | |
hux | 28:307f58df778a | 8 | #ifndef _TYPES_H_ |
hux | 28:307f58df778a | 9 | #define _TYPES_H_ |
hux | 28:307f58df778a | 10 | |
hux | 28:307f58df778a | 11 | #define SIZE_OBJECTNAME 40 |
hux | 28:307f58df778a | 12 | #define SIZE_INIBUFFER SIZE_OBJECTNAME |
hux | 28:307f58df778a | 13 | |
hux | 28:307f58df778a | 14 | typedef uint8_t ObjectId[6]; |
hux | 28:307f58df778a | 15 | typedef char ObjectName[SIZE_OBJECTNAME]; // use UTF8S coded characters |
hux | 28:307f58df778a | 16 | typedef uint8_t Bool; |
hux | 28:307f58df778a | 17 | typedef uint8_t Digital; |
hux | 28:307f58df778a | 18 | typedef uint8_t DateTime[10]; |
hux | 28:307f58df778a | 19 | typedef uint8_t Buffer[10]; |
hux | 28:307f58df778a | 20 | |
hux | 28:307f58df778a | 21 | typedef uint8_t IniBuffer[SIZE_INIBUFFER]; |
hux | 28:307f58df778a | 22 | |
hux | 28:307f58df778a | 23 | |
hux | 28:307f58df778a | 24 | #endif // _TYPES_H_ |