diff options
| author | drowe67 <[email protected]> | 2024-05-11 08:13:44 +0930 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-05-11 08:13:44 +0930 |
| commit | 3d69c8d0639059851e60c0ddf882f86bf2fba380 (patch) | |
| tree | 56372a673925be032aaaa8670b684a678c1ac22a /src/ofdm_internal.h | |
| parent | 6930e3c26a9d8f4f2baf5f2b8145a7216ab71d02 (diff) | |
| parent | f004b51451fe78b8f289c8a553acad06f2768d9e (diff) | |
Merge pull request #46 from drowe67/dr-freedata-001
FreeDATA Feature Request 001 - FreeDV API support for custom OFDM raw data modes
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; |
