![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Bluetooth Connected TOF Sensor
Dependencies: BLE_API X_NUCLEO_6180XA1 X_NUCLEO_IDB0XA1 mbed
Fork of BLE_HeartRate_IDB0XA1 by
bricks/stop.h@30:e324e95c68a9, 2017-02-02 (annotated)
- Committer:
- hux
- Date:
- Thu Feb 02 17:35:34 2017 +0000
- Revision:
- 30:e324e95c68a9
- Parent:
- 28:def5e0f0fb06
Final Version 2.0 of S16_Blue_ToF
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hux | 28:def5e0f0fb06 | 1 | // stop.h - stop button functionality |
hux | 28:def5e0f0fb06 | 2 | |
hux | 28:def5e0f0fb06 | 3 | #ifndef _STOP_H_ |
hux | 28:def5e0f0fb06 | 4 | #define _STOP_H_ |
hux | 28:def5e0f0fb06 | 5 | |
hux | 28:def5e0f0fb06 | 6 | #include <mbed.h> |
hux | 28:def5e0f0fb06 | 7 | |
hux | 28:def5e0f0fb06 | 8 | class StopButton : private InterruptIn |
hux | 28:def5e0f0fb06 | 9 | { |
hux | 28:def5e0f0fb06 | 10 | public: |
hux | 28:def5e0f0fb06 | 11 | void set(); // set stop request |
hux | 28:def5e0f0fb06 | 12 | void clear(); // clear stop request |
hux | 28:def5e0f0fb06 | 13 | bool request(); // stop requested? |
hux | 28:def5e0f0fb06 | 14 | |
hux | 28:def5e0f0fb06 | 15 | public: // construction |
hux | 28:def5e0f0fb06 | 16 | StopButton(PinName pin = USER_BUTTON); |
hux | 28:def5e0f0fb06 | 17 | }; |
hux | 28:def5e0f0fb06 | 18 | |
hux | 28:def5e0f0fb06 | 19 | #endif // _STOP_H_ |