/* * bsp_TCPClient.h * * Created on: Oct 22, 2024 * Author: akeguo */ #ifndef INC_BSP_BSP_TCPCLIENT_H_ #define INC_BSP_BSP_TCPCLIENT_H_ /* Includes ------------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ #define USE_LCD /* enable LCD */ #define DEST_IP_ADDR0 ((uint8_t)192U) #define DEST_IP_ADDR1 ((uint8_t)168U) #define DEST_IP_ADDR2 ((uint8_t)1U) #define DEST_IP_ADDR3 ((uint8_t)10U) #define DEST_PORT ((uint16_t)502U) /*NETMASK*/ #define NETMASK_ADDR0 ((uint8_t) 255U) #define NETMASK_ADDR1 ((uint8_t) 255U) #define NETMASK_ADDR2 ((uint8_t) 255U) #define NETMASK_ADDR3 ((uint8_t) 0U) /*Gateway Address*/ #define GW_ADDR0 ((uint8_t) 192U) #define GW_ADDR1 ((uint8_t) 168U) #define GW_ADDR2 ((uint8_t) 1U) #define GW_ADDR3 ((uint8_t) 1U) /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ /* Includes ------------------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ //void tcp_client_connect(void); typedef struct _LazorData { float Feature_X; //特征点X float Feature_Y; //特征点Y float Feature_Z; //特征点Z float Gap; //间隙 float WrongEdgeQuantity; //错边量 float Area; //面积 } LazorData; extern unsigned char *Weld_Out_Flag; extern unsigned char Weld_Out_Count; extern unsigned char Weld_Out_SafeCount; extern LazorData *ReadLazorData; void TCP_Client_Init(void); #endif /* INC_BSP_BSP_TCPCLIENT_H_ */