BLE Heart Rate Sample Program for HRM1017 which is using Nordic nRF51822 confirmed the connection of nRFToolbox on Android.
Dependencies: BLE_API mbed nRF51822 color_pixels
Fork of BLE_HTM_HRM1017 by
PulseSensor.h@11:d32f4f43161d, 2016-10-16 (annotated)
- Committer:
- YoshinoTaro
- Date:
- Sun Oct 16 14:25:59 2016 +0000
- Revision:
- 11:d32f4f43161d
Enable Heart Rate Sensor and PixelLeds;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
YoshinoTaro | 11:d32f4f43161d | 1 | #ifndef PULSE_SENSOR_H |
YoshinoTaro | 11:d32f4f43161d | 2 | #define PULSE_SENSOR_H |
YoshinoTaro | 11:d32f4f43161d | 3 | |
YoshinoTaro | 11:d32f4f43161d | 4 | #ifdef __cplusplus |
YoshinoTaro | 11:d32f4f43161d | 5 | extern "C" { |
YoshinoTaro | 11:d32f4f43161d | 6 | #endif // __cplusplus |
YoshinoTaro | 11:d32f4f43161d | 7 | |
YoshinoTaro | 11:d32f4f43161d | 8 | void initPulseSensor(void); |
YoshinoTaro | 11:d32f4f43161d | 9 | void calcHeartRate(void); |
YoshinoTaro | 11:d32f4f43161d | 10 | bool isQS(); |
YoshinoTaro | 11:d32f4f43161d | 11 | int getBPM(); |
YoshinoTaro | 11:d32f4f43161d | 12 | |
YoshinoTaro | 11:d32f4f43161d | 13 | #ifdef __cplusplus |
YoshinoTaro | 11:d32f4f43161d | 14 | } |
YoshinoTaro | 11:d32f4f43161d | 15 | #endif // __cplusplus |
YoshinoTaro | 11:d32f4f43161d | 16 | |
YoshinoTaro | 11:d32f4f43161d | 17 | |
YoshinoTaro | 11:d32f4f43161d | 18 | #endif //PULSE_SENSOR_H |