28 lines
1005 B
C
28 lines
1005 B
C
/*
|
|
* @Author: wangxujie 390834610@qq.com
|
|
* @Date: 2025-02-19 08:33:14
|
|
* @LastEditors: wangxujie 390834610@qq.com
|
|
* @LastEditTime: 2025-04-18 13:36:18
|
|
* @FilePath: \Semi-finished product testing\User\application\inc\tcpserverc.h
|
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
*/
|
|
#ifndef _TCPECHO_H_
|
|
#define _TCPECHO_H_
|
|
|
|
#include "main.h"
|
|
|
|
#define TCP_PORT_HART1 5001
|
|
#define TCP_PORT_HART2 5002
|
|
#define TCP_PORT_BLE1 6002
|
|
#define TCP_PORT_BLE2 6001
|
|
#define TCP_PORT_CONTROL 5003
|
|
|
|
extern void tcp_echo_init(void);
|
|
extern void user_send_data_hart1(uint8_t *data, uint16_t len);
|
|
extern void user_send_data_hart2(uint8_t *data, uint16_t len);
|
|
extern void user_send_data_ble1(uint8_t *data, uint16_t len);
|
|
extern void user_send_data_ble2(uint8_t *data, uint16_t len);
|
|
extern void user_send_data_control(uint8_t *data, uint16_t len);
|
|
extern void uart_forwarding_tcp(void);
|
|
#endif
|