Add the CTCSS tone generator.

This commit is contained in:
Jonathan Naylor 2020-04-15 19:49:26 +01:00
parent ebd87584da
commit c103ac91b3
2 changed files with 84 additions and 2 deletions

View file

@ -21,6 +21,12 @@
#include "Config.h"
struct CTCSS_TABLE {
uint8_t m_frequency;
uint16_t m_length;
q15_t m_values[360U];
};
class CFMCTCSSTX {
public:
CFMCTCSSTX();
@ -30,7 +36,9 @@ public:
void getAudio(q15_t* samples, uint8_t length);
private:
q15_t m_level;
CTCSS_TABLE* m_entry;
q15_t m_level;
uint16_t m_n;
};
#endif