Added message to query PLL settings
This commit is contained in:
parent
9762c2359c
commit
3320bdb3e3
|
@ -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")
|
||||
}
|
||||
},
|
||||
|
|
|
@ -269,6 +269,7 @@ fn poll_device(
|
|||
.unwrap();
|
||||
ctx.request_repaint();
|
||||
}
|
||||
DeviceMessage::PLLSettings(_) => {}
|
||||
}
|
||||
}
|
||||
Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (),
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue