From 68f0fb6e939f5d76c0f0503d4395397a43773b56 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 7 Jan 2024 23:01:04 +0100 Subject: [PATCH] Added message to query PLL settings --- firmware/src/main.rs | 5 ++++- hostsoftware/src/main.rs | 1 + protocol/src/lib.rs | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/firmware/src/main.rs b/firmware/src/main.rs index 9434adc..d54be42 100644 --- a/firmware/src/main.rs +++ b/firmware/src/main.rs @@ -434,7 +434,10 @@ mod app { to_vec_cobs::(&device_msg).unwrap(); serial.write(bytes.as_slice()).unwrap(); } - HostMessage::SetPLLOutputs(_) => { + HostMessage::SetPLLSettings(_) => { + defmt::error!("PLL output is not implemented yet") + } + HostMessage::GetPllSettings => { defmt::error!("PLL output is not implemented yet") } }, diff --git a/hostsoftware/src/main.rs b/hostsoftware/src/main.rs index 6aad15a..641e604 100644 --- a/hostsoftware/src/main.rs +++ b/hostsoftware/src/main.rs @@ -269,6 +269,7 @@ fn poll_device( .unwrap(); ctx.request_repaint(); } + DeviceMessage::PLLSettings(_) => {} } } Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (), diff --git a/protocol/src/lib.rs b/protocol/src/lib.rs index b0e4a65..5503539 100644 --- a/protocol/src/lib.rs +++ b/protocol/src/lib.rs @@ -5,12 +5,14 @@ use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug, PartialEq)] pub enum DeviceMessage { Status(StatusMessage), + PLLSettings(PLLSettings), } #[derive(Serialize, Deserialize, Debug, PartialEq)] pub enum HostMessage { RequestStatus, - SetPLLOutputs(PLLSettings), + SetPLLSettings(PLLSettings), + GetPllSettings, } #[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]