mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
implement proper LDU2 encode/decode; implement proper HDU (Header) encode/decode
This commit is contained in:
@@ -28,11 +28,13 @@ public:
|
||||
CP25Data();
|
||||
~CP25Data();
|
||||
|
||||
bool decodeHeader(const unsigned char* data);
|
||||
void encodeHeader(unsigned char* data);
|
||||
|
||||
bool decodeLDU1(const unsigned char* data);
|
||||
void encodeLDU1(unsigned char* data);
|
||||
|
||||
bool decodeLDU2(const unsigned char* data);
|
||||
void encodeLDU2(unsigned char* data);
|
||||
|
||||
bool decodeTSDU(const unsigned char* data);
|
||||
@@ -82,6 +84,9 @@ private:
|
||||
|
||||
void decodeLDUHamming(const unsigned char* raw, unsigned char* data);
|
||||
void encodeLDUHamming(unsigned char* data, const unsigned char* raw);
|
||||
|
||||
void decodeHeaderGolay(const unsigned char* raw, unsigned char* data);
|
||||
void encodeHeaderGolay(unsigned char* data, const unsigned char* raw);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user