Job_SignsPads/STM32/Code/STM32F405/USER/general.h
2025-04-22 10:29:37 +08:00

49 lines
1.5 KiB
C

/*
* @Description:
* @Version: 1.0
* @Author: lzc
* @Date: 2023-02-22 12:51:39
* @LastEditors: lzc
* @LastEditTime: 2024-03-14 09:13:23
*/
#ifndef __GENERAL_H
#define __GENERAL_H
#define NIGHT_SLEEP_POS_1 9 /* 结束时间*/
#define NIGHT_SLEEP_POS_2 20 /* 开始时间*/
enum Warning_LevelClear
{
HR_Hi_Threshold = 110,
HR_Lo_Threshold = 55,
BR_Hi_Threshold = 22,
BR_Lo_Threshold = 7,
};
// NOTE: 呼吸告警分级计数
// int bR_warningCounter[4] = {0};
// int bR_warning_level_7_10_count = 0;
// int bR_warning_level_11_14_count = 0;
// int bR_warning_level_15_18_count = 0;
// int bR_warning_level_19_22_count = 0;
// NOTE: 心率告警分级计数
// int hR_warningCounter[10] = {0};
// int hR_warning_level_55_60_count = 0;
// int hR_warning_level_61_65_count = 0;
// int hR_warning_level_66_70_count = 0;
// int hR_warning_level_71_75_count = 0;
// int hR_warning_level_76_80_count = 0;
// int hR_warning_level_81_85_count = 0;
// int hR_warning_level_86_90_count = 0;
// int hR_warning_level_91_95_count = 0;
// int hR_warning_level_96_100_count = 0;
// int hR_warning_level_101_110_count = 0;
void LED_judge(void); // LED 判断
void wifi_send(void); // Data 主题上报
void wifi_factorySend(void);
void VectorTableReInit(void); // 体征垫初始化
void wifi_json_send(void); // WIFI JSON上报
void wifi_RealTime_log_send(char *MyStr);
void wifi_local_log_send(char *MyStr, char Breath, char Heart, char Move); // Log
#endif