![](/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/callback.h@29:a6b74dfdd5f2, 2017-10-01 (annotated)
- Committer:
- hux
- Date:
- Sun Oct 01 12:49:25 2017 +0000
- Revision:
- 29:a6b74dfdd5f2
- Parent:
- 27:32267cee7cb8
A blue button is always a nice toy ...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 27:32267cee7cb8 | 1 | // callback.h - deal with callbacks |
hux | 27:32267cee7cb8 | 2 | // |
hux | 27:32267cee7cb8 | 3 | // |
hux | 27:32267cee7cb8 | 4 | #ifndef _CALLBACK_H_ |
hux | 27:32267cee7cb8 | 5 | #define _CALLBACK_H_ |
hux | 27:32267cee7cb8 | 6 | |
hux | 27:32267cee7cb8 | 7 | #include "bricks/o.h" |
hux | 27:32267cee7cb8 | 8 | |
hux | 27:32267cee7cb8 | 9 | void onConnect (O&o, void(*fptr)(O&o)); // setup connection callback |
hux | 27:32267cee7cb8 | 10 | void onDisconnect(O&o, void(*fptr)(O&o)); // setup disconnect callback |
hux | 27:32267cee7cb8 | 11 | void onWritten (O&o, void (*fptr)(O&)); // setup data written callback |
hux | 27:32267cee7cb8 | 12 | |
hux | 27:32267cee7cb8 | 13 | #endif // _CALLBACK_H_ |