![](/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
Diff: bricks/callback.h
- Revision:
- 29:eceecbe28088
- Parent:
- 27:32267cee7cb8
diff -r a23b16555909 -r eceecbe28088 bricks/callback.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bricks/callback.h Mon Aug 20 16:43:10 2018 +0000 @@ -0,0 +1,13 @@ +// callback.h - deal with callbacks +// +// +#ifndef _CALLBACK_H_ +#define _CALLBACK_H_ + +#include "bricks/o.h" + + void onConnect (O&o, void(*fptr)(O&o)); // setup connection callback + void onDisconnect(O&o, void(*fptr)(O&o)); // setup disconnect callback + void onWritten (O&o, void (*fptr)(O&)); // setup data written callback + +#endif // _CALLBACK_H_ \ No newline at end of file