summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib/freedv_tx_ss_impl.h
diff options
context:
space:
mode:
authorA. Maitland Bottoms <bottoms@debian.org>2019-03-11 22:54:21 -0400
committerAndrej Rode <mail@andrejro.de>2019-03-24 20:14:42 +0100
commite02eed791069c82bd262f4b2cbe324db76326e54 (patch)
tree8d7393cb9ef7caa8a2088d66ca19f1a285307b5f /gr-vocoder/lib/freedv_tx_ss_impl.h
parentb9e5abc5972706f078a51b6d0bb9dbb6535c5b9c (diff)
gr-vocoder: update codec2 and freedv blocks.
Update to add support for newer modes in codec2 0.8.1. Fixup grc blocks yml templates, update examples.
Diffstat (limited to 'gr-vocoder/lib/freedv_tx_ss_impl.h')
-rw-r--r--gr-vocoder/lib/freedv_tx_ss_impl.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/gr-vocoder/lib/freedv_tx_ss_impl.h b/gr-vocoder/lib/freedv_tx_ss_impl.h
index a023b67f5b..167ee28ea8 100644
--- a/gr-vocoder/lib/freedv_tx_ss_impl.h
+++ b/gr-vocoder/lib/freedv_tx_ss_impl.h
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2016 Free Software Foundation, Inc.
+ * Copyright 2016-2019 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -48,18 +48,29 @@ namespace gr {
struct freedv_tx_callback_state d_cb_state;
struct freedv *d_freedv;
int d_mode;
+ std::string d_msg_text;
+ int d_interleave_frames;
float d_squelch_thresh;
int d_speech_samples;
int d_nom_modem_samples;
int d_use_codectx;
int d_use_datatx;
- std::string d_msg_text;
+ int d_clip;
+ int d_tx_bpf;
+#ifdef FREEDV_MODE_700D
+ struct freedv_advanced d_adv;
+#endif
struct CODEC2 *d_c2;
public:
- freedv_tx_ss_impl(int mode, const std::string txt_msg);
+ freedv_tx_ss_impl(int mode, const std::string txt_msg, int interleave_frames);
~freedv_tx_ss_impl();
+ void set_clip(bool val);
+ void set_clip(int val);
+ void set_tx_bpf(bool val);
+ void set_tx_bpf(int val);
+
// Where all the action really happens
int work(int noutput_items,
gr_vector_const_void_star &input_items,