diff options
| author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-04-13 15:46:03 +0200 |
|---|---|---|
| committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2019-04-13 15:46:03 +0200 |
| commit | eab1a72287410908349edca76702faed7ac0e348 (patch) | |
| tree | a9e75b5dd576434494d33cf3463519f4dcd0f4c5 /src/common/includes | |
| parent | 74f34510c6f51b5510a80431369fe61c384c72c1 (diff) | |
| download | glutte-o-matic-eab1a72287410908349edca76702faed7ac0e348.tar.gz glutte-o-matic-eab1a72287410908349edca76702faed7ac0e348.tar.bz2 glutte-o-matic-eab1a72287410908349edca76702faed7ac0e348.zip | |
Enable FAX mode when DTMF sequence detected
Diffstat (limited to 'src/common/includes')
| -rw-r--r-- | src/common/includes/Audio/tone.h | 1 | ||||
| -rw-r--r-- | src/common/includes/GPIO/pio.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/common/includes/Audio/tone.h b/src/common/includes/Audio/tone.h index a4692df..294fe54 100644 --- a/src/common/includes/Audio/tone.h +++ b/src/common/includes/Audio/tone.h @@ -47,6 +47,7 @@ void tone_detector_enable(int enable); /* Return 1 when 1750 detected, 0 otherwise */ int tone_1750_status(void); +/* The FAX status is 1 if the recently decoded DTMF is the 0-7-* sequence. */ int tone_fax_status(void); /* Update all tone detection status */ diff --git a/src/common/includes/GPIO/pio.h b/src/common/includes/GPIO/pio.h index a9a506d..e118fc8 100644 --- a/src/common/includes/GPIO/pio.h +++ b/src/common/includes/GPIO/pio.h @@ -35,6 +35,9 @@ void pio_set_tx(int on); void pio_set_mod_off(int mod_off); void pio_set_qrp(int on); void pio_set_gps_epps(int on); +void pio_set_fax(int on); +void pio_set_det_1750(int on); +void pio_set_sq2(int on); void pio_set_fsm_signals(struct fsm_input_signals_t* sig); |
