Add the seperate AX25Frame class.

This commit is contained in:
Jonathan Naylor
2020-06-10 13:53:18 +01:00
parent e1d1ac4a4d
commit 57e18e337f
5 changed files with 149 additions and 9 deletions
+7 -7
View File
@@ -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);
};