class heart_rate
Diff: pixart_heart_rate.h
- Revision:
- 2:5cb0e405a24c
- Parent:
- 1:e9f4fb198b63
- Child:
- 4:90dfc6d7461b
diff -r e9f4fb198b63 -r 5cb0e405a24c pixart_heart_rate.h --- a/pixart_heart_rate.h Fri Oct 27 06:32:02 2017 +0000 +++ b/pixart_heart_rate.h Fri Oct 27 06:39:17 2017 +0000 @@ -16,7 +16,7 @@ class heart_rate { public: - typedef void (*DEBUG_PRINTF_HANDLE)(const char *fmt, ...); + typedef void (*DEBUG_PRINT_HANDLE)(const char *fmt, ...); typedef uint64_t (*TIME_TO_MILLISEC_HANDLE)(uint64_t time); enum gravity_mode { @@ -60,7 +60,7 @@ bool init(gravity_mode gravity = gravity_4g); - void set_debug_printf(DEBUG_PRINTF_HANDLE handler); + void enable_debug_print(DEBUG_PRINT_HANDLE handler); void reset(); @@ -86,7 +86,7 @@ const size_t PPG_CH_NUM; const size_t ACCEL_MAX_SAMPLE_NUM; - DEBUG_PRINTF_HANDLE m_debug_printf_handler; + DEBUG_PRINT_HANDLE m_debug_print_handler; TIME_TO_MILLISEC_HANDLE m_time_to_millisec_handler; void *m_alg_buffer; gravity_mode m_gravity_mode;