初始提交
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef PARAM_H
|
||||
#define PARAM_H
|
||||
#include "main.h"
|
||||
|
||||
#pragma pack(1)
|
||||
typedef struct __sysParamDef
|
||||
{
|
||||
uint16_t usAdcPeriod; ///< 定时采样周期 微秒
|
||||
uint16_t usAdcinterval; ///< 定距采样间隔 微米
|
||||
uint8_t ucUseEncoder; ///< 启用编码器
|
||||
uint8_t ucAverageCount; ///< 平均次数
|
||||
} sysParamDef;
|
||||
|
||||
typedef struct __sysOtpInfoDef
|
||||
{
|
||||
char aucModel[32];
|
||||
char aucDate[32];
|
||||
char aucSn[32];
|
||||
} sysOtpInfoDef;
|
||||
|
||||
#pragma pack()
|
||||
|
||||
extern sysParamDef *gptSysParam;
|
||||
|
||||
int loadSysParam(void);
|
||||
void saveSysParam(void);
|
||||
|
||||
const sysOtpInfoDef *loadOtpInfo(void);
|
||||
int saveOtpInfo(const sysOtpInfoDef *otpInfo);
|
||||
|
||||
void systemResetFactory(void);
|
||||
|
||||
|
||||
#endif // PARAM_H
|
||||
Reference in New Issue
Block a user