bossay_release_out/app/A03_MAX30102_B/include/blood.h

26 lines
379 B
C
Raw Permalink Normal View History

2025-09-24 11:16:14 +08:00
#ifndef _BLOOD_H
#define _BLOOD_H
#include "max30102.h"
#include "algorithm.h"
#include "math.h"
typedef enum
{
BLD_NORMAL, //正常
BLD_ERROR, //侦测错误
}BloodState;//血液状态
typedef struct
{
int heart; //心率数据
float SpO2; //血氧数据
}BloodData;
void blood_data_translate(void);
void blood_data_update(void);
void blood_Loop(void);
#endif