diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-10 09:30:06 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-05-10 09:30:06 +0200 |
commit | d0c10808d2908e2fada3bc13ab5a47260297c74b (patch) | |
tree | 925ddfdad385c7aaf9f65f30fa212bd5f66c6ef4 /src/common/includes | |
parent | b5191a8c7c1764a2a8663775d1c45d25e356e12f (diff) | |
download | glutte-o-matic-d0c10808d2908e2fada3bc13ab5a47260297c74b.tar.gz glutte-o-matic-d0c10808d2908e2fada3bc13ab5a47260297c74b.tar.bz2 glutte-o-matic-d0c10808d2908e2fada3bc13ab5a47260297c74b.zip |
Implement 5s 1750 to disable FAX
Diffstat (limited to 'src/common/includes')
-rw-r--r-- | src/common/includes/Audio/tone.h | 4 | ||||
-rw-r--r-- | src/common/includes/Core/fsm.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h index e88cae2..ba05304 100644 --- a/src/common/includes/Audio/tone.h +++ b/src/common/includes/Audio/tone.h @@ -37,6 +37,10 @@ void tone_detector_enable(int enable); /* Return 1 when 1750 detected, 0 otherwise */ int tone_1750_status(void); +/* Return 1 if 1750 is currently detected, and has been already for at + * least 5s */ +int tone_1750_for_5_seconds(void); + /* The FAX status is 1 if the recently decoded DTMF is the 0-7-* sequence. */ int tone_fax_status(void); diff --git a/src/common/includes/Core/fsm.h b/src/common/includes/Core/fsm.h index ae12dae..37ca386 100644 --- a/src/common/includes/Core/fsm.h +++ b/src/common/includes/Core/fsm.h @@ -83,6 +83,7 @@ struct fsm_input_signals_t { /* Signals coming from FAX and 1750 detector */ int fax_mode; // 1750Hz filter disabled for machine-generated modes int det_1750; // 1750Hz detected + int long_1750; // 1750Hz detected for more than 5s /* Signals coming from CW and PSK generator */ int cw_psk31_done; // The CW and PSK generator has finished transmitting the message |