blood.h 379 B

12345678910111213141516171819202122232425
  1. #ifndef _BLOOD_H
  2. #define _BLOOD_H
  3. #include "max30102.h"
  4. #include "algorithm.h"
  5. #include "math.h"
  6. typedef enum
  7. {
  8. BLD_NORMAL, //正常
  9. BLD_ERROR, //侦测错误
  10. }BloodState;//血液状态
  11. typedef struct
  12. {
  13. int heart; //心率数据
  14. float SpO2; //血氧数据
  15. }BloodData;
  16. void blood_data_translate(void);
  17. void blood_data_update(void);
  18. void blood_Loop(void);
  19. #endif