mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-10-23 11:05:00 +02:00
More work on adding AX.25 decoding.
This commit is contained in:
+11
-3
@@ -21,14 +21,22 @@
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
struct AX25Frame {
|
||||
uint8_t m_data[300U];
|
||||
uint16_t m_length;
|
||||
uint16_t m_fcs;
|
||||
};
|
||||
|
||||
class CAX25Demodulator {
|
||||
public:
|
||||
CAX25Demodulator(uint16_t n);
|
||||
CAX25Demodulator();
|
||||
|
||||
void process(q15_t sample);
|
||||
bool process(const q15_t* samples, uint8_t length, AX25Frame& frame);
|
||||
|
||||
private:
|
||||
uint16_t m_n;
|
||||
bool m_nrziState;
|
||||
|
||||
bool NRZI(bool b);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user