Detect DAC overflows.

This commit is contained in:
Jonathan Naylor 2016-06-09 19:50:34 +01:00
parent 961d1000f5
commit 0d07dd78eb
3 changed files with 29 additions and 19 deletions

6
IO.h
View file

@ -43,7 +43,7 @@ public:
void setParameters(bool rxInvert, bool txInvert, bool pttInvert, uint8_t rxLevel, uint8_t txLevel);
bool hasADCOverflow();
void getOverflow(bool& adcOverflow, bool& dacOverflow);
bool hasTXOverflow();
bool hasRXOverflow();
@ -85,8 +85,8 @@ private:
bool m_dcd;
bool m_detect;
uint16_t m_overflow;
uint16_t m_overcount;
uint16_t m_adcOverflow;
uint16_t m_dacOverflow;
uint32_t m_count;