Store FM output in a ring buffer.

This commit is contained in:
Jonathan Naylor 2020-04-20 21:57:21 +01:00
parent 046a1de51a
commit 0a51b4c34e
4 changed files with 196 additions and 2 deletions

2
FM.h
View file

@ -26,6 +26,7 @@
#include "FMTimeout.h"
#include "FMKeyer.h"
#include "FMTimer.h"
#include "FMRB.h"
enum FM_STATE {
FS_LISTENING,
@ -69,6 +70,7 @@ private:
CFMTimer m_ackMinTimer;
CFMTimer m_ackDelayTimer;
CFMTimer m_hangTimer;
CFMRB m_ringBuffer;
void stateMachine(bool validSignal, uint8_t length);
void listeningState(bool validSignal);