Long awaited fix to CTCSS detection and encoding

Two extremely powerful functions:

setCtcssEncoder(float freq)
setCtcssDecoder(float freq)

Yes, that does mean *any* frequency, including non-standard CTCSS tones.

Enjoy.

-Casey
This commit is contained in:
spaceneedle
2017-05-08 19:21:18 -05:00
parent 307d33add0
commit 6538ae7db3
2 changed files with 42 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
// Based on Programming Manual rev. 2.0, 5/19/2011 (RM-MPU-6000A-00)
// 11/22/2013 by Morgan Redfield <redfieldm@gmail.com>
// 04/26/2015 various changes Casey Halverson <spaceneedle@gmail.com>
// 05/08/2017 CTCSS code added
#ifndef _HAMSHIELD_H_
@@ -311,6 +311,15 @@ class HamShield {
// Subaudio settings
// Recommended user function for setting and receiving CTCSS does
// TODO: set others to private and/or deprecate
void setCtcssEncoder(float freq); // generate sub audio tone on channel when transmitting
void setCtcssDecoder(float freq); // unmute audio on tone present when receiving channel
// Ctcss/cdcss mode sel
// x00=disable,
// 001=inner ctcss en,