mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-23 11:05:00 +02:00
Add the seperate AX25Frame class.
This commit is contained in:
+7
-7
@@ -21,21 +21,21 @@
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
struct AX25Frame {
|
||||
uint8_t m_data[300U];
|
||||
uint16_t m_length;
|
||||
uint16_t m_fcs;
|
||||
};
|
||||
#include "AX25Frame.h"
|
||||
|
||||
|
||||
class CAX25Demodulator {
|
||||
public:
|
||||
CAX25Demodulator();
|
||||
|
||||
bool process(const q15_t* samples, uint8_t length, AX25Frame& frame);
|
||||
bool process(const q15_t* samples, uint8_t length, CAX25Frame& frame);
|
||||
|
||||
private:
|
||||
bool m_nrziState;
|
||||
bool* m_delayLine;
|
||||
uint16_t m_delayPos;
|
||||
bool m_nrziState;
|
||||
|
||||
bool delay(bool b);
|
||||
bool NRZI(bool b);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user