4G_module/custom/jt808/inc/jt808_msg_pkg.h

15 lines
418 B
C
Raw Normal View History

#ifndef __JT808_PKG_PKG__
#define __JT808_PKG_PKG__
#include "jt808_protocol.h"
#include "jt808_config.h"
typedef struct {
uint8_t *buf; // 打包后的消息帧
uint16_t len; // 打包后的消息帧长度
} JT808MsgESC_t;
// 消息帧打包 (会自动为msgEscape->buf分配合适长度的内存注意释放)
int jt808_msg_pkg(MessageID_t Msg_ID, JT808MsgESC_t *msgEscape);
#endif // __JT808_PKG_PKG__