diff options
Diffstat (limited to 'src/freedv_data_raw_tx.c')
| -rw-r--r-- | src/freedv_data_raw_tx.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/freedv_data_raw_tx.c b/src/freedv_data_raw_tx.c index ce5da56..7fa1e84 100644 --- a/src/freedv_data_raw_tx.c +++ b/src/freedv_data_raw_tx.c @@ -278,8 +278,13 @@ int main(int argc, char *argv[]) { memcpy(ofdm_config.tx_uw, uw, sizeof(uw)); memcpy(&ofdm_config.tx_uw[ofdm_config.nuwbits - sizeof(uw)], uw, sizeof(uw)); + /* set up a trivial Tx band pass filter as a demo */ + static float tx_bpf[] = {1.0, 1.0, 1.0}; + ofdm_config.tx_bpf_proto = tx_bpf; + ofdm_config.tx_bpf_proto_n = 3; adv.config = (void *)&ofdm_config; freedv = freedv_open_advanced(mode, &adv); + freedv_ofdm_print_info(freedv); } else { freedv = freedv_open(mode); } |
