Add lockout functionality with the option to use the COS line.

This commit is contained in:
Jonathan Naylor
2016-03-03 17:49:03 +00:00
parent 7258bf34fb
commit e7334a2d7a
4 changed files with 45 additions and 2 deletions
+5
View File
@@ -46,6 +46,8 @@ public:
bool hasTXOverflow();
bool hasRXOverflow();
bool hasLockout() const;
void resetWatchdog();
private:
@@ -53,6 +55,7 @@ private:
DigitalOut m_pinPTT;
DigitalOut m_pinCOSLED;
DigitalOut m_pinLED;
DigitalIn m_pinCOS;
AnalogIn m_pinADC;
AnalogOut m_pinDAC;
@@ -83,6 +86,8 @@ private:
uint16_t m_overcount;
volatile uint32_t m_watchdog;
bool m_lockout;
};
#endif