| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /*
- * Copyright (c) 2006-2021, RT-Thread Development Team
- *
- * SPDX-License-Identifier: Apache-2.0
- *
- * Change Logs:
- * Date Author Notes
- * 2022-06-29 19813 the first version
- */
- #ifndef APPLICATIONS_MON_MON_H_
- #define APPLICATIONS_MON_MON_H_
- #include "main.h"
- #define MAX_MON_CACHE_BUF_SIZE 60
- #define MAX_TXT_ROW 12
- void sendbuf_to_hmi(char * buf ,uint8_t lenght);
- uint8_t monitor_data_process(uint8_t datas_size, uint8_t *data_buf);
- uint8_t CRC_Check(uint8_t datas_size, uint8_t *data_buf);
- typedef struct QNode{
- uint8_t data_lenght;
- uint8_t data[MAX_MON_CACHE_BUF_SIZE];
- struct QNode * last;
- struct QNode * next;
- }QNode;
- QNode *initQueue();
- uint8_t Queue_in(QNode *qnode, char *buf ,uint8_t data_l);
- uint8_t Queue_out(QNode *qnode, char *buf);
- uint8_t get_queue_len(QNode *qnode);
- void delete_queue(QNode *qnode);
- #endif /* APPLICATIONS_MON_MON_H_ */
|