aboutsummaryrefslogtreecommitdiff
path: root/src/freedv_data_raw_tx.c
diff options
context:
space:
mode:
authordrowe67 <[email protected]>2024-05-04 07:16:26 +0930
committerDavid Rowe <[email protected]>2024-05-04 07:16:26 +0930
commitb2311e5a967e09e5b293578bb596c83c50af536d (patch)
treedeaf61be8918a4333b51e14848c6afa5d318c26e /src/freedv_data_raw_tx.c
parentcfa9cd02e44652cdf625cbed729bd15905045523 (diff)
custom config debugging: dump ofdm config from a FreeDV API function
Diffstat (limited to 'src/freedv_data_raw_tx.c')
-rw-r--r--src/freedv_data_raw_tx.c5
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);
}