FT8CN/ft8CN/app/src/main/cpp/ft8/unpack.h

20 wiersze
614 B
C
Czysty Zwykły widok Historia

#ifndef _INCLUDE_UNPACK_H_
#define _INCLUDE_UNPACK_H_
#include <stdint.h>
#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_