Added message to query PLL settings
/ audit (push) Successful in 19s Details
/ build-firmware (push) Successful in 47s Details
/ build-linux (push) Successful in 2m58s Details
/ build-appimage (push) Successful in 3m32s Details
/ build-windows (push) Successful in 1m46s Details

This commit is contained in:
Sebastian 2024-01-07 23:01:04 +01:00
parent 9762c2359c
commit 3320bdb3e3
3 changed files with 8 additions and 2 deletions

View File

@ -434,7 +434,10 @@ mod app {
to_vec_cobs::<DeviceMessage, USB_BUFFER_SIZE>(&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")
}
},

View File

@ -269,6 +269,7 @@ fn poll_device(
.unwrap();
ctx.request_repaint();
}
DeviceMessage::PLLSettings(_) => {}
}
}
Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (),

View File

@ -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)]