bgy.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #ifndef __BGY_H
  2. #define __BGY_H
  3. #include "stdint.h"
  4. #include "string.h"
  5. #include "stdio.h"
  6. #include "usart.h"
  7. #include "config.h"
  8. #include "rkg.h"
  9. #include "cang.h"
  10. #include "kzq.h"
  11. #include "level.h"
  12. #include "tem.h"
  13. #include "angle.h"
  14. #include "xyf.h"
  15. #include "hdf.h"
  16. #include "main.h"
  17. #define Biguayou_BUF_DEP 20
  18. typedef struct
  19. {
  20. uint16_t BGY_SSWD[Biguayou_BUF_DEP]; //壁挂油冷凝状态值
  21. uint16_t BGY_SVAL[Biguayou_BUF_DEP]; //壁挂油冷凝状态值
  22. uint16_t BGY_SADV[Biguayou_BUF_DEP];
  23. uint16_t BGY_INSTALL; //壁挂油有无油状态
  24. uint16_t BGY_OFState; //壁挂油壁挂油开关
  25. uint16_t BGY_OFStateCnt; //壁挂油开关计数
  26. uint16_t BGY_State; //壁挂油壁挂油状态
  27. uint16_t BGY_StateCnt; //壁挂油计数
  28. uint16_t BGY_ErrorCnt; //错误计数
  29. uint16_t BGY_Error; //错误状态
  30. uint16_t BGY_StateKeepNum; //判断次数
  31. uint16_t RTData_Num; //数据收发次数
  32. }Biguayou_Inf;
  33. extern Biguayou_Inf biguayou_inf[SENSOR_DEEP];
  34. extern void BGY_Init(void);
  35. extern void BGY_state(uint16_t CangNum);
  36. extern void Get_Biguayou_data(void);
  37. extern uint8_t USART2_RX_BUF002[Uart2_BUF_SIZE];
  38. extern uint8_t USART1_RX_BUF002[Uart2_BUF_SIZE];
  39. extern uint8_t USART3_RX_BUF002[Uart2_BUF_SIZE];
  40. extern int data_lengthU2,data_lengthU1,data_lengthU3;
  41. extern int flagU1Rx,flagU2Rx,flagU3Rx;
  42. extern uint8_t USART3_RX_BUF002_print[Uart3_BUF_SIZE];
  43. extern uint16_t BGY_SetThreshold(uint8_t* pTx);
  44. extern void Get_Biguayou_data(void);
  45. #endif