aboutsummaryrefslogtreecommitdiffstats
path: root/sw/eval-clock-cw-tx/src/state.rs
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-04 22:03:16 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2021-06-04 22:03:16 +0200
commit1ee6040a847d386afc7d7e64945c3a5ff87aa6d7 (patch)
tree43378e23978261e711c13465fdd00708668422ad /sw/eval-clock-cw-tx/src/state.rs
parent442709985fe3adfe9d2688167585ff37279d11b6 (diff)
downloadpicardy-1ee6040a847d386afc7d7e64945c3a5ff87aa6d7.tar.gz
picardy-1ee6040a847d386afc7d7e64945c3a5ff87aa6d7.tar.bz2
picardy-1ee6040a847d386afc7d7e64945c3a5ff87aa6d7.zip
eval-kit: port variable speed VFO from picardy
Diffstat (limited to 'sw/eval-clock-cw-tx/src/state.rs')
-rw-r--r--sw/eval-clock-cw-tx/src/state.rs19
1 files changed, 1 insertions, 18 deletions
diff --git a/sw/eval-clock-cw-tx/src/state.rs b/sw/eval-clock-cw-tx/src/state.rs
index 87527bf..44c64d2 100644
--- a/sw/eval-clock-cw-tx/src/state.rs
+++ b/sw/eval-clock-cw-tx/src/state.rs
@@ -13,13 +13,6 @@ pub enum VFOSelection {
B,
}
-#[derive(Clone)]
-pub enum TuneSpeed {
- Slow,
- Mid,
- Fast
-}
-
#[derive(PartialEq, Eq, Clone, Copy)]
pub enum CWMode {
StraightKey,
@@ -52,7 +45,6 @@ pub struct State {
pub vfo_b : u32,
pub vfo_sel : VFOSelection,
pub mode : Mode,
- pub tune_speed : TuneSpeed,
pub sequence_state : SequenceState,
pub update_disp_counter : u8,
pub cw_wpm : u32,
@@ -66,10 +58,9 @@ impl State {
vfo_sel : VFOSelection::A,
vfo_a : INITIAL_VFO,
vfo_b : INITIAL_VFO,
- tune_speed : TuneSpeed::Mid,
sequence_state : SequenceState::Rx,
update_disp_counter : 0,
- cw_wpm : 12,
+ cw_wpm : 14,
}
}
@@ -97,14 +88,6 @@ impl State {
}
}
- pub fn vfo_incr(&self) -> i32 {
- match self.tune_speed {
- TuneSpeed::Slow => 10,
- TuneSpeed::Mid => 200,
- TuneSpeed::Fast => 1000,
- }
- }
-
pub fn allow_feldhell_keying(&self) -> bool {
self.sequence_state == SequenceState::Tx(SequenceMode::FeldHell)
}