Add CTCSS hysteresis.

This commit is contained in:
Jonathan Naylor
2020-05-12 13:55:30 +01:00
parent 75e32e1b71
commit 435544f7a1
5 changed files with 32 additions and 23 deletions
+3 -2
View File
@@ -34,7 +34,7 @@ class CFMCTCSSRX {
public:
CFMCTCSSRX();
uint8_t setParams(uint8_t frequency, uint8_t threshold);
uint8_t setParams(uint8_t frequency, uint8_t highThreshold, uint8_t lowThreshold);
uint8_t process(q15_t sample);
@@ -42,7 +42,8 @@ public:
private:
q63_t m_coeffDivTwo;
q31_t m_threshold;
q31_t m_highThreshold;
q31_t m_lowThreshold;
uint16_t m_count;
q31_t m_q0;
q31_t m_q1;