aboutsummaryrefslogtreecommitdiffstats
path: root/sw/eval-clock-cw-tx/src/state.rs
diff options
context:
space:
mode:
Diffstat (limited to 'sw/eval-clock-cw-tx/src/state.rs')
-rw-r--r--sw/eval-clock-cw-tx/src/state.rs12
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,