24 lines
732 B
C
24 lines
732 B
C
#ifndef __JT808_PKG_PARSE__
|
|
#define __JT808_PKG_PARSE__
|
|
#include "jt808_protocol.h"
|
|
#include "jt808_set_TermParam.h"
|
|
#include "jt808_config.h"
|
|
|
|
#pragma pack(1)
|
|
// 解析结果以及终端参数项
|
|
typedef struct{
|
|
uint16_t Rsp_flow_num; //应答流水号
|
|
uint16_t Rsp_msg_id; // 应答消息ID
|
|
uint8_t Rsp_result; // 应答结果
|
|
MsgHead_t msg_head; // 解析的消息头
|
|
Term_Param_item_t *term_param_item; // 终端参数项
|
|
}PrsResult_t;
|
|
#pragma pack()
|
|
|
|
// ------------------------------- 全局变量声明 ----------
|
|
extern PrsResult_t PrsResult; // 解析结果以及终端参数项
|
|
|
|
int jt808_msg_parse(const uint8_t *BufferReceive, uint16_t length, PrsResult_t *PrsResult);
|
|
|
|
#endif // __JT808_PKG_PARSE__
|