34 lines
663 B
C
34 lines
663 B
C
#ifndef PARAM_H
|
|
#define PARAM_H
|
|
#include "main.h"
|
|
|
|
#pragma pack(1)
|
|
typedef struct __sysParamDef
|
|
{
|
|
uint16_t usPreheatCurrent; ///< 预热电流 单位:毫安
|
|
uint16_t usLimitCurrent; ///< 电流限制 单位:毫安
|
|
uint16_t usXrayCurrent; ///< X射线电流 单位:微安
|
|
} 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
|