diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-03-29 22:46:08 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2021-03-29 22:46:08 +0200 |
commit | b2b6ac9eea2eb5066942237bfced3f7f8b48c43c (patch) | |
tree | 79b27f2285ccc8e891bf628aa4bd43fc366c4b23 /sw/eval-clock-cw-tx/src/state.rs | |
parent | 2071c8485241e0b95de891e8855542d7c51915ab (diff) | |
download | picardy-b2b6ac9eea2eb5066942237bfced3f7f8b48c43c.tar.gz picardy-b2b6ac9eea2eb5066942237bfced3f7f8b48c43c.tar.bz2 picardy-b2b6ac9eea2eb5066942237bfced3f7f8b48c43c.zip |
Work on eval-clock-cw-tx sequencing
Diffstat (limited to 'sw/eval-clock-cw-tx/src/state.rs')
-rw-r--r-- | sw/eval-clock-cw-tx/src/state.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sw/eval-clock-cw-tx/src/state.rs b/sw/eval-clock-cw-tx/src/state.rs index b3b0b7b..a5891c5 100644 --- a/sw/eval-clock-cw-tx/src/state.rs +++ b/sw/eval-clock-cw-tx/src/state.rs @@ -66,13 +66,23 @@ impl State { } } - pub fn vfo(&self) -> u32 { + pub fn vfo_display(&self) -> u32 { match self.vfo_sel { VFOSelection::A => self.vfo_a, VFOSelection::B => self.vfo_b, } } + pub fn vfo_siclock(&self) -> u32 { + match self.sequence_state { + SequenceState::Rx => 0, + _ => match self.vfo_sel { + VFOSelection::A => self.vfo_a, + VFOSelection::B => self.vfo_b, + } + } + } + pub fn vfo_incr(&self) -> i32 { match self.tune_speed { TuneSpeed::Slow => 10, |