BLE NAND for ST Boards
Dependencies: BLE_API X_NUCLEO_IDB0XA1 mbed
Fork of N06_NAND by
bricks/callback.h@26:dce30a5341bb, 2018-05-19 (annotated)
- Committer:
- hux
- Date:
- Sat May 19 14:10:17 2018 +0000
- Revision:
- 26:dce30a5341bb
- Parent:
- 23:2e73c391bb12
Published
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 23:2e73c391bb12 | 1 | // callback.h - deal with callbacks |
hux | 23:2e73c391bb12 | 2 | // |
hux | 23:2e73c391bb12 | 3 | // |
hux | 23:2e73c391bb12 | 4 | #ifndef _CALLBACK_H_ |
hux | 23:2e73c391bb12 | 5 | #define _CALLBACK_H_ |
hux | 23:2e73c391bb12 | 6 | |
hux | 23:2e73c391bb12 | 7 | #include "bricks/o.h" |
hux | 23:2e73c391bb12 | 8 | |
hux | 23:2e73c391bb12 | 9 | void onConnect (O&o, void(*fptr)(O&o)); // setup connection callback |
hux | 23:2e73c391bb12 | 10 | void onDisconnect(O&o, void(*fptr)(O&o)); // setup disconnect callback |
hux | 23:2e73c391bb12 | 11 | void onWritten (O&o, void (*fptr)(O&)); // setup data written callback |
hux | 23:2e73c391bb12 | 12 | |
hux | 23:2e73c391bb12 | 13 | #endif // _CALLBACK_H_ |