update
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef _GAS_DATA_H__
|
||||
#define _GAS_DATA_H__
|
||||
|
||||
#include "main.h"
|
||||
|
||||
#define SENSOR_NUM 16
|
||||
|
||||
typedef struct
|
||||
{
|
||||
u8 ver[20]; /*软件版本号*/
|
||||
u8 sn[20]; /*SN号*/
|
||||
u16 range; /*量程*/
|
||||
s16 value; /*浓度*/
|
||||
u16 pp_ad; /*峰峰值*/
|
||||
u16 r_pp_ad; /*原始峰峰值*/
|
||||
u16 pp_pix; /*峰峰值坐标*/
|
||||
u16 light_ad; /*光功率*/
|
||||
u16 tec_set_value; /*tec设定值*/
|
||||
u16 tec_temp; /*tec温度*/
|
||||
s16 temp; /*环境温度*/
|
||||
u16 light_ad_max; /*波形最大值*/
|
||||
u16 light_ad_min; /*波形最小值*/
|
||||
u16 state_code; /*状态码*/
|
||||
u16 dc_offset; /*直流偏置*/
|
||||
//u16 ad_befor_multiple; /*AD前放大倍数*/
|
||||
u16 demod_multiple; /*锁相放大倍数*/
|
||||
//u16 mode; /*模式状态*/
|
||||
s16 calib_temp; /*标定时的温度*/
|
||||
u16 calib_press; /*标定时的压力*/
|
||||
u16 calib_humidity; /*标定时的湿度*/
|
||||
u16 fac_calib_code_h;
|
||||
u16 fac_calib_code_l; /*厂家标定时的状态码*/
|
||||
u16 reserve[1]; /*预留*/
|
||||
}gas_data_t;
|
||||
|
||||
extern gas_data_t gas_data[SENSOR_NUM];
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user