#ifndef __HDF_H #define __HDF_H #include "stdint.h" #include "cang.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 "main.h" #define HDF_BUF_DEP 16 typedef struct{ uint16_t HDF_OFData[HDF_BUF_DEP]; //开关数据 uint16_t HDF_Data[HDF_BUF_DEP]; //浮球数据 uint16_t HDF_OFState; //底阀开关 uint16_t HDF_OFState1; //底阀开关 uint16_t HDF_OFStateCnt; //底阀开关计数 uint16_t HDF_State; //底阀浮球状态 uint16_t HDF_StateCnt; //底阀浮球计数 uint16_t HDF_ErrorCnt; //错误计数 uint16_t HDF_Error; //错误状态 uint16_t HDF_StateKeepNum; //判断次数 uint16_t RTData_Num; //数据收发次数 }HDF_Inf; 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 HDF_Inf hdf_inf[SENSOR_DEEP]; extern uint8_t Get_DFState(uint8_t Cang_Num); extern void DF_State(uint8_t Cang_Num); extern void Get_ZN_hdf_data(void) ; extern void TOUCHUAN_UART_NUM(uint8_t* pTx) ; #endif