diff options
| author | drowe67 <[email protected]> | 2024-05-03 10:10:49 +0930 |
|---|---|---|
| committer | David Rowe <[email protected]> | 2024-05-03 10:10:49 +0930 |
| commit | cfa9cd02e44652cdf625cbed729bd15905045523 (patch) | |
| tree | 275e55006c3e005915885cdb56324830e46aaf47 /src/ofdm_internal.h | |
| parent | d026cfede7053c7f38bfed6f5089b403e961a45a (diff) | |
first pass a config driven Tx BPF set up
Diffstat (limited to 'src/ofdm_internal.h')
| -rw-r--r-- | src/ofdm_internal.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/ofdm_internal.h b/src/ofdm_internal.h index 8007934..3cb9130 100644 --- a/src/ofdm_internal.h +++ b/src/ofdm_internal.h @@ -94,15 +94,17 @@ struct OFDM_CONFIG { char *codename; /* name of LDPC code used with this mode */ uint8_t tx_uw[MAX_UW_BITS]; /* user defined unique word */ int amp_est_mode; - bool tx_bpf_en; /* default tx (mod) hilbert clipper BPF enable */ - bool rx_bpf_en; /* default rx (demod) input BPF enable */ - bool foff_limiter; /* tames freq offset updates in low SNR */ - float amp_scale; /* used to scale Tx waveform to approx FREEDV_PEAK with - clipper off */ - float clip_gain1; /* gain we apply to Tx signal before clipping to control - PAPR*/ - float clip_gain2; /* gain we apply to Tx signal after clipping and BBF to - control peak level */ + bool tx_bpf_en; /* default tx (mod) hilbert clipper BPF enable */ + bool rx_bpf_en; /* default rx (demod) input BPF enable */ + float *tx_bpf_proto; /* low pass prototype for complex BPF */ + int tx_bpf_proto_n; /* number of taps in low pass prototype */ + bool foff_limiter; /* tames freq offset updates in low SNR */ + float amp_scale; /* used to scale Tx waveform to approx FREEDV_PEAK with + clipper off */ + float clip_gain1; /* gain we apply to Tx signal before clipping to control + PAPR*/ + float clip_gain2; /* gain we apply to Tx signal after clipping and BBF to + control peak level */ bool clip_en; char mode[16]; /* OFDM mode in string form */ char *data_mode; @@ -156,6 +158,7 @@ struct OFDM { int packetsperburst; /* for OFDM data modes, how many packets before we reset state machine */ int amp_est_mode; /* amplitude estimtor algorithm */ + int tx_bpf_proto_n; /* number of taps in low pass prototype */ float amp_scale; float clip_gain1; float clip_gain2; @@ -220,6 +223,7 @@ struct OFDM { float coarse_foff_est_hz; float timing_norm; float mean_amp; + float *tx_bpf_proto; // Integer int clock_offset_counter; |
