mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-04 14:08:33 +00:00
Fix compilation issues.
This commit is contained in:
parent
baa4f7aa4c
commit
edddbedd4b
3 changed files with 13 additions and 23 deletions
27
FMCTCSSRX.h
27
FMCTCSSRX.h
|
|
@ -21,12 +21,9 @@
|
|||
|
||||
#include "Config.h"
|
||||
|
||||
enum CTCSSState
|
||||
{
|
||||
CTS_NONE,
|
||||
CTS_READY,
|
||||
CTS_VALID
|
||||
};
|
||||
const uint8_t CTS_NONE = 0U;
|
||||
const uint8_t CTS_READY = 1U;
|
||||
const uint8_t CTS_VALID = 2U;
|
||||
|
||||
#define CTCSS_READY(a) ((a & CTS_READY) != 0)
|
||||
#define CTCSS_NOT_READY(a) ((a & CTS_READY) == 0)
|
||||
|
|
@ -39,20 +36,18 @@ public:
|
|||
|
||||
uint8_t setParams(uint8_t frequency, uint8_t threshold, uint8_t level);
|
||||
|
||||
CTCSSState process(q15_t sample);
|
||||
|
||||
CTCSSState getState();
|
||||
uint8_t process(q15_t sample);
|
||||
|
||||
void reset();
|
||||
|
||||
private:
|
||||
q63_t m_coeffDivTwo;
|
||||
q31_t m_threshold;
|
||||
uint16_t m_count;
|
||||
q31_t m_q0;
|
||||
q31_t m_q1;
|
||||
CTCSSState m_result;
|
||||
q15_t m_rxLevelInverse;
|
||||
q63_t m_coeffDivTwo;
|
||||
q31_t m_threshold;
|
||||
uint16_t m_count;
|
||||
q31_t m_q0;
|
||||
q31_t m_q1;
|
||||
uint8_t m_result;
|
||||
q15_t m_rxLevelInverse;
|
||||
|
||||
q15_t q15Division(q15_t a, q15_t divisor);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue