#ifndef _INCLUDE_UNPACK_H_ #define _INCLUDE_UNPACK_H_ #include #include "decode.h" // field1 - at least 14 bytes // field2 - at least 14 bytes // field3 - at least 7 bytes //int unpack77_fields(const uint8_t* a77, char* field1, char* field2, char* field3); // message should have at least 35 bytes allocated (34 characters + zero terminator) /// 消息应至少分配35个字节(34个字符+零终止符) int unpack77(const uint8_t* a77, char* message); //新增的函数,把消息解码成message_t int unpackToMessage_t(const uint8_t* a77, message_t* message); #endif // _INCLUDE_UNPACK_H_