![](/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
- Committer:
- hux
- Date:
- 2017-10-01
- Revision:
- 29:a6b74dfdd5f2
- Parent:
- 27:32267cee7cb8
File content as of revision 29:a6b74dfdd5f2:
// 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_