mirror of
https://github.com/g4klx/MMDVM.git
synced 2026-04-04 14:08:33 +00:00
Add the CTCSS tone generator.
This commit is contained in:
parent
ebd87584da
commit
c103ac91b3
2 changed files with 84 additions and 2 deletions
10
FMCTCSSTX.h
10
FMCTCSSTX.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue