![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
TOF based Presence Detector
Dependencies: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/types.h@29:eceecbe28088, 2018-08-20 (annotated)
- Committer:
- hux
- Date:
- Mon Aug 20 16:43:10 2018 +0000
- Revision:
- 29:eceecbe28088
- Parent:
- 28:a23b16555909
made in Shanghai
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 28:a23b16555909 | 1 | // types.h - declaring some common types |
hux | 28:a23b16555909 | 2 | // |
hux | 28:a23b16555909 | 3 | // The type identifiers are all begining with capital letter in order to leave |
hux | 28:a23b16555909 | 4 | // the lower capital identifiers free for 'overloaded' variable or characteristic |
hux | 28:a23b16555909 | 5 | // identifiers. |
hux | 28:a23b16555909 | 6 | // |
hux | 28:a23b16555909 | 7 | |
hux | 28:a23b16555909 | 8 | #ifndef _TYPES_H_ |
hux | 28:a23b16555909 | 9 | #define _TYPES_H_ |
hux | 28:a23b16555909 | 10 | |
hux | 28:a23b16555909 | 11 | #define SIZE_OBJECTNAME 40 |
hux | 28:a23b16555909 | 12 | #define SIZE_INIBUFFER SIZE_OBJECTNAME |
hux | 28:a23b16555909 | 13 | |
hux | 28:a23b16555909 | 14 | typedef uint8_t ObjectId[6]; |
hux | 28:a23b16555909 | 15 | typedef char ObjectName[SIZE_OBJECTNAME]; // use UTF8S coded characters |
hux | 28:a23b16555909 | 16 | typedef uint8_t Bool; |
hux | 28:a23b16555909 | 17 | typedef uint8_t Digital; |
hux | 28:a23b16555909 | 18 | typedef uint8_t DateTime[10]; |
hux | 28:a23b16555909 | 19 | typedef uint8_t Buffer[10]; |
hux | 28:a23b16555909 | 20 | |
hux | 28:a23b16555909 | 21 | typedef uint8_t IniBuffer[SIZE_INIBUFFER]; |
hux | 28:a23b16555909 | 22 | |
hux | 28:a23b16555909 | 23 | |
hux | 28:a23b16555909 | 24 | #endif // _TYPES_H_ |