mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-05 14:37:02 +00:00
Convert to using floats.
This commit is contained in:
parent
6d5b864cba
commit
ebdba2bdb9
3 changed files with 102 additions and 62 deletions
12
FMCTCSSRX.h
12
FMCTCSSRX.h
|
|
@ -27,11 +27,17 @@ public:
|
|||
|
||||
uint8_t setParams(uint8_t frequency, uint8_t threshold);
|
||||
|
||||
bool process(const q15_t* samples, uint8_t length);
|
||||
bool process(q15_t* samples, uint8_t length);
|
||||
|
||||
void reset();
|
||||
|
||||
private:
|
||||
q31_t m_coeffDivTwo;
|
||||
uint8_t m_threshold;
|
||||
float32_t m_coeff;
|
||||
float32_t m_threshold;
|
||||
uint16_t m_count;
|
||||
float m_q0;
|
||||
float m_q1;
|
||||
bool m_result;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue