123456789101112131415161718192021222324252627282930313233 |
- #ifndef __XYF_H
- #define __XYF_H
- #include "stdint.h"
- #include "config.h"
- #include "cang.h"
- #define XYF_BUF_DEP 20
- typedef struct{
- uint16_t XYF_Data1[XYF_BUF_DEP]; //卸油阀开关数据
- uint16_t XYF_Data2[XYF_BUF_DEP]; //卸油阀卸尽数据
- uint16_t XYF_StateCnt1; //卸油阀开关状态计数
- uint16_t XYF_StateCnt2; //卸油阀卸尽状态计数
- uint16_t XYF_StateCnt3; //卸油阀开关状态计数
- uint16_t XYF_StateCnt4; //卸油阀卸尽状态计数
- uint16_t XYF_State1; //卸油阀开关状态
- uint16_t XYF_State2; //卸油阀卸尽状态
- uint16_t XYF_ErrorCnt; //卸油阀错误计数
- uint16_t XYF_Error; //卸油阀错误状态
- uint16_t XYF_StateKeepNum; //判断次数
- uint16_t XYF_ADC;
- uint16_t RTData_Num;
- }XYF_Inf;
- extern XYF_Inf xyf_inf[SENSOR_DEEP];
- extern void XYF_state(uint16_t CangNum);
- extern void XYF_Init(void);
- extern void Flash_ReadBytes(uint16_t* sorBuf,uint32_t FlashAddr,uint16_t len);
- extern void Flash_WriteBytes(uint16_t* sorBuf,uint32_t FlashAddr,uint16_t len);
- #endif
|