123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef __BGY_H
- #define __BGY_H
- #include "stdint.h"
- #include "string.h"
- #include "stdio.h"
- #include "usart.h"
- #include "config.h"
- #include "rkg.h"
- #include "cang.h"
- #include "kzq.h"
- #include "level.h"
- #include "tem.h"
- #include "angle.h"
- #include "xyf.h"
- #include "hdf.h"
- #include "main.h"
- #define Biguayou_BUF_DEP 20
- typedef struct
- {
- uint16_t BGY_SSWD[Biguayou_BUF_DEP]; //壁挂油冷凝状态值
- uint16_t BGY_SVAL[Biguayou_BUF_DEP]; //壁挂油冷凝状态值
- uint16_t BGY_SADV[Biguayou_BUF_DEP];
- uint16_t BGY_INSTALL; //壁挂油有无油状态
- uint16_t BGY_OFState; //壁挂油壁挂油开关
- uint16_t BGY_OFStateCnt; //壁挂油开关计数
- uint16_t BGY_State; //壁挂油壁挂油状态
- uint16_t BGY_StateCnt; //壁挂油计数
- uint16_t BGY_ErrorCnt; //错误计数
- uint16_t BGY_Error; //错误状态
- uint16_t BGY_StateKeepNum; //判断次数
- uint16_t RTData_Num; //数据收发次数
- }Biguayou_Inf;
- extern Biguayou_Inf biguayou_inf[SENSOR_DEEP];
- extern void BGY_Init(void);
- extern void BGY_state(uint16_t CangNum);
- extern void Get_Biguayou_data(void);
- extern uint8_t USART2_RX_BUF002[Uart2_BUF_SIZE];
- extern uint8_t USART1_RX_BUF002[Uart2_BUF_SIZE];
- extern uint8_t USART3_RX_BUF002[Uart2_BUF_SIZE];
- extern int data_lengthU2,data_lengthU1,data_lengthU3;
- extern int flagU1Rx,flagU2Rx,flagU3Rx;
- extern uint8_t USART3_RX_BUF002_print[Uart3_BUF_SIZE];
- extern uint16_t BGY_SetThreshold(uint8_t* pTx);
- extern void Get_Biguayou_data(void);
- #endif
|