aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2022-12-31 14:40:29 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2022-12-31 14:40:29 +0100
commitf75140cb483b09e7dc5f941e1acc4eade8137c0d (patch)
tree8e7b590502d33310be7b73e4e7c98d99fb44888f
parent01a22905e358a4f7e01021cfd5aa3702458418a2 (diff)
downloadfl2k_ampliphase-f75140cb483b09e7dc5f941e1acc4eade8137c0d.tar.gz
fl2k_ampliphase-f75140cb483b09e7dc5f941e1acc4eade8137c0d.tar.bz2
fl2k_ampliphase-f75140cb483b09e7dc5f941e1acc4eade8137c0d.zip
Remove unused DDS fields
-rw-r--r--src/main.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 3933ed4..0492ed1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -46,9 +46,6 @@ struct DDS {
trig_table_quadrature : Vec<i16>,
trig_table_inphase : Vec<i16>,
- samp_rate : f32,
- freq : f32,
-
/* instantaneous phase */
phase : u32,
/* phase increment */
@@ -88,8 +85,6 @@ impl DDS {
DDS {
trig_table_quadrature,
trig_table_inphase,
- samp_rate,
- freq,
phase: f32::round(phase * ANG_INCR) as u32,
phase_step: f32::round(phase_step) as u32,
phase_delta: 0,