2023-05-30 08:53:31 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2023-05-30 murmur the first version
|
|
|
|
*/
|
|
|
|
#ifndef APPLICATIONS_TTTR_H_
|
|
|
|
#define APPLICATIONS_TTTR_H_
|
|
|
|
|
2023-06-20 10:09:07 +00:00
|
|
|
|
|
|
|
//struct rt_messagequeue TTrx_mq;
|
|
|
|
typedef struct
|
|
|
|
{
|
2023-09-16 06:42:37 +00:00
|
|
|
rt_uint8_t data[400];
|
2023-06-20 10:09:07 +00:00
|
|
|
int size;
|
|
|
|
}TTRx_MSG;
|
|
|
|
|
2023-06-16 03:18:52 +00:00
|
|
|
int tcpInit(void);
|
|
|
|
int tcpRec(unsigned char *recv_data);
|
2023-05-30 08:53:31 +00:00
|
|
|
int sendMsg(const rt_uint8_t *msg, size_t len);
|
|
|
|
int sendMsgs(const rt_uint8_t (*msg)[200], char *s, size_t row);
|
2023-06-16 03:18:52 +00:00
|
|
|
void tcpClose(void);
|
2023-06-20 10:09:07 +00:00
|
|
|
int isTCPok(void);
|
|
|
|
void tcpRecMQ(void);
|
2023-05-30 08:53:31 +00:00
|
|
|
#endif /* APPLICATIONS_TTTR_H_ */
|