You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.7 KiB
53 lines
1.7 KiB
|
10 months ago
|
/*
|
||
|
|
* bsp_TCPClient.h
|
||
|
|
*
|
||
|
|
* Created on: Oct 22, 2024
|
||
|
|
* Author: akeguo
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef INC_BSP_BSP_TCPCLIENT_H_
|
||
|
|
#define INC_BSP_BSP_TCPCLIENT_H_
|
||
|
|
|
||
|
|
|
||
|
|
/* Includes ------------------------------------------------------------------*/
|
||
|
|
|
||
|
|
#include "../../BASE/Inc/BSP/bsp_include.h"
|
||
|
|
/* 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 ------------------------------------------------------- */
|
||
|
|
#include "bsp_LazorData.pb.h"
|
||
|
|
extern LazorData *ReadLazorData;
|
||
|
|
|
||
|
|
|
||
|
|
/* Includes ------------------------------------------------------------------*/
|
||
|
|
/* Exported types ------------------------------------------------------------*/
|
||
|
|
/* Exported constants --------------------------------------------------------*/
|
||
|
|
/* Exported macro ------------------------------------------------------------*/
|
||
|
|
/* Exported functions ------------------------------------------------------- */
|
||
|
|
//void tcp_client_connect(void);
|
||
|
|
void TCP_Client_Init(void);
|
||
|
|
#endif /* INC_BSP_BSP_TCPCLIENT_H_ */
|