32 #include <mraa/pwm.hpp>
33 #include <mraa/aio.hpp>
34 #include <mraa/gpio.hpp>
50 #if defined(SWIGJAVA) || defined(JAVACALLBACK)
53 typedef void (* callback_handler) (
clbk_data);
83 #if defined(SWIGJAVA) || defined(JAVACALLBACK)
92 static void *do_sample(
void *arg);
93 pthread_t sample_thread;
94 uint32_t sample_counter;
95 uint32_t last_beat_time;
110 #if defined(SWIGJAVA) || defined(JAVACALLBACK)
111 Callback *obj_callback;
113 callback_handler callback;
115 volatile uint16_t ctx_counter;
Definition: pulsensor.h:46
C++ API for the 3-Wire Pulse Sensor.
Definition: pulsensor.h:80
int is_heart_beat
Definition: pulsensor.h:47