medical_SDK/include/Generate_data.h

33 lines
1.0 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Generate_data.h
#ifndef GENERATE_DATA_H
#define GENERATE_DATA_H
#include "headfile.h"
// 模板函数声明
template<typename T>
T random_value(T min, T max);
// 生成符合脑电设备格式的测试数据0x4230
std::vector<uint8_t> generate_eeg_test_data();
// 生成符合胸腹设备格式的测试数据0x4211
std::vector<uint8_t> generate_ecg_emg_test_data();
// 生成符合血氧设备格式的测试数据0x4302
std::vector<uint8_t> generate_ppg_test_data();
// 生成符合12导联心电设备格式的测试数据0x4402
std::vector<uint8_t> generate_12lead_ecg_test_data();
// 生成符合数字听诊设备格式的测试数据0x1102
std::vector<uint8_t> generate_stethoscope_test_data();
// 生成符合鼾声设备格式的测试数据0x4212
std::vector<uint8_t> generate_snore_test_data();
// 生成符合呼吸/姿态/环境光设备格式的测试数据0x4213
std::vector<uint8_t> generate_respiration_test_data();
void print_parsed_result(const SensorData& result);
#endif // GENERATE_DATA_H