|
upm
0.2.0
Sensor/Actuator repository for libmraa (v0.6.1)
|
C++ API for the Grove Ear-clip Heart Rate sensor. More...
UPM module for the GroveEHR sensor. It is used to measure your heartbeat.
Public Member Functions | |
| GroveEHR (int pin) | |
| ~GroveEHR () | |
| uint32_t | getMillis () |
| void | initClock () |
| void | clearBeatCounter () |
| void | startBeatCounter () |
| void | stopBeatCounter () |
| uint32_t | beatCounter () |
| int | heartRate () |
Static Public Member Functions | |
| static void | beatISR (void *ctx) |
| uint32_t getMillis | ( | ) |
Return the number of milliseconds elapsed since initClock() was last called.
| void initClock | ( | ) |
Reset the Clock
| void clearBeatCounter | ( | ) |
Reset the beat counter to 0. The beat Counter should be stopped via stopBeatCounter() prior to calling this function.
| void startBeatCounter | ( | ) |
Start the beat counter
| void stopBeatCounter | ( | ) |
Stop the beat counter
| uint32_t beatCounter | ( | ) |
Get the beat Counter
|
static |
Beat Interrupt Service Routine
| int heartRate | ( | ) |
Compute the heart rate
1.8.9.1