Bluetooth Connected TOF Sensor
Dependencies: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/enroll.h@25:231d3f382583, 2017-01-06 (annotated)
- Committer:
- hux
- Date:
- Fri Jan 06 21:36:47 2017 +0000
- Revision:
- 25:231d3f382583
- Child:
- 26:fd06c8b57d16
T07N_Easy_GATT, release 1.1 - all services & required callbacks for handling the services are moved to easy.cpp. Works well - no bug known!
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 25:231d3f382583 | 1 | // enroll.h - enroll a service |
hux | 25:231d3f382583 | 2 | // |
hux | 25:231d3f382583 | 3 | // Synopsis: |
hux | 25:231d3f382583 | 4 | // |
hux | 25:231d3f382583 | 5 | // enroll(o,service) |
hux | 25:231d3f382583 | 6 | // |
hux | 25:231d3f382583 | 7 | // The service is enrolled by registering it @ GAP |
hux | 25:231d3f382583 | 8 | // |
hux | 25:231d3f382583 | 9 | // See also: SERVICE |
hux | 25:231d3f382583 | 10 | // |
hux | 25:231d3f382583 | 11 | #ifndef _ENROLL_H_ |
hux | 25:231d3f382583 | 12 | #define _ENROLL_H_ |
hux | 25:231d3f382583 | 13 | |
hux | 25:231d3f382583 | 14 | #include "bricks/blob.h" |
hux | 25:231d3f382583 | 15 | #include "bricks/service.h" |
hux | 25:231d3f382583 | 16 | |
hux | 25:231d3f382583 | 17 | inline void enroll(Blob &o, Service &service) |
hux | 25:231d3f382583 | 18 | { |
hux | 25:231d3f382583 | 19 | service.enroll(o); // enroll service |
hux | 25:231d3f382583 | 20 | } |
hux | 25:231d3f382583 | 21 | |
hux | 25:231d3f382583 | 22 | #endif // _ENROLL_H_ |