Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/callback.h@30:e324e95c68a9, 2017-02-02 (annotated)
- Committer:
- hux
- Date:
- Thu Feb 02 17:35:34 2017 +0000
- Revision:
- 30:e324e95c68a9
- Parent:
- 27:32267cee7cb8
Final Version 2.0 of S16_Blue_ToF
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_ |
