Example Host software for integration of MAX3266x chips (, MAX32664GWEB) equipped with Heart Rate from Wrist Algorithm. This is “stand-alone” software that runs on the MAX32630 low-power microcontroller to display heart rate on the display of the MAXREFDES101 reference design. It is intended provide a simple example of how to initialize and communicate with the sensor hub. Windows and Android communications are not supported.
Dependencies: Maxim_Sensor_Hub_Communications BMI160 whrmDemoUI max32630hsp3
Fork of Host_Software_MAX32664GWEB_HR_wrist by
demoUI/whrmDemoUI.h@13:3d1a6b947396, 2019-01-10 (annotated)
- Committer:
- gmehmet
- Date:
- Thu Jan 10 11:06:01 2019 +0300
- Revision:
- 13:3d1a6b947396
Code for evaluating Max3266x Heart Rate from Wrist Agorithm
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
gmehmet | 13:3d1a6b947396 | 1 | /* |
gmehmet | 13:3d1a6b947396 | 2 | * demoUI.h |
gmehmet | 13:3d1a6b947396 | 3 | * |
gmehmet | 13:3d1a6b947396 | 4 | * Created on: Nov 29, 2018 |
gmehmet | 13:3d1a6b947396 | 5 | * Author: Yagmur.Gok |
gmehmet | 13:3d1a6b947396 | 6 | */ |
gmehmet | 13:3d1a6b947396 | 7 | |
gmehmet | 13:3d1a6b947396 | 8 | #ifndef SOURCE_DEMOUI_WHRMDEMOUI_H_ |
gmehmet | 13:3d1a6b947396 | 9 | #define SOURCE_DEMOUI_WHRMDEMOUI_H_ |
gmehmet | 13:3d1a6b947396 | 10 | |
gmehmet | 13:3d1a6b947396 | 11 | #include <events/mbed_events.h> |
gmehmet | 13:3d1a6b947396 | 12 | #include <mbed.h> |
gmehmet | 13:3d1a6b947396 | 13 | |
gmehmet | 13:3d1a6b947396 | 14 | #include "screen/LS013B7DH03.h" |
gmehmet | 13:3d1a6b947396 | 15 | |
gmehmet | 13:3d1a6b947396 | 16 | enum{ |
gmehmet | 13:3d1a6b947396 | 17 | DISPLAY_WHRM = 0, |
gmehmet | 13:3d1a6b947396 | 18 | DISPLAY_REINITWHRM = 1 |
gmehmet | 13:3d1a6b947396 | 19 | }; |
gmehmet | 13:3d1a6b947396 | 20 | |
gmehmet | 13:3d1a6b947396 | 21 | #define USE_DEMO_DISPDEV |
gmehmet | 13:3d1a6b947396 | 22 | #if defined(USE_DEMO_DISPDEV) |
gmehmet | 13:3d1a6b947396 | 23 | |
gmehmet | 13:3d1a6b947396 | 24 | |
gmehmet | 13:3d1a6b947396 | 25 | void demoUI_init(); |
gmehmet | 13:3d1a6b947396 | 26 | void demoUI_display_algo_estimations(int integer); |
gmehmet | 13:3d1a6b947396 | 27 | void demoUI_display_set_algoMode(int algo); |
gmehmet | 13:3d1a6b947396 | 28 | int demoUI_display_get_mode(void); |
gmehmet | 13:3d1a6b947396 | 29 | void demoUI_display(int algoResult); |
gmehmet | 13:3d1a6b947396 | 30 | |
gmehmet | 13:3d1a6b947396 | 31 | |
gmehmet | 13:3d1a6b947396 | 32 | |
gmehmet | 13:3d1a6b947396 | 33 | #else |
gmehmet | 13:3d1a6b947396 | 34 | void start_demo_display(void); |
gmehmet | 13:3d1a6b947396 | 35 | void display_algo_estimations( uint8_t mode , int integer, int fraction); |
gmehmet | 13:3d1a6b947396 | 36 | void setup_mode_button(void); |
gmehmet | 13:3d1a6b947396 | 37 | |
gmehmet | 13:3d1a6b947396 | 38 | #endif |
gmehmet | 13:3d1a6b947396 | 39 | |
gmehmet | 13:3d1a6b947396 | 40 | |
gmehmet | 13:3d1a6b947396 | 41 | extern volatile uint8_t algoMode; |
gmehmet | 13:3d1a6b947396 | 42 | |
gmehmet | 13:3d1a6b947396 | 43 | |
gmehmet | 13:3d1a6b947396 | 44 | |
gmehmet | 13:3d1a6b947396 | 45 | #endif /* SOURCE_DEMOUI_WHRMDEMOUI_H_ */ |