Added message to query PLL settings
This commit is contained in:
parent
be963830d4
commit
68f0fb6e93
|
@ -434,7 +434,10 @@ mod app {
|
||||||
to_vec_cobs::<DeviceMessage, USB_BUFFER_SIZE>(&device_msg).unwrap();
|
to_vec_cobs::<DeviceMessage, USB_BUFFER_SIZE>(&device_msg).unwrap();
|
||||||
serial.write(bytes.as_slice()).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")
|
defmt::error!("PLL output is not implemented yet")
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -269,6 +269,7 @@ fn poll_device(
|
||||||
.unwrap();
|
.unwrap();
|
||||||
ctx.request_repaint();
|
ctx.request_repaint();
|
||||||
}
|
}
|
||||||
|
DeviceMessage::PLLSettings(_) => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (),
|
Err(ref e) if e.kind() == io::ErrorKind::TimedOut => (),
|
||||||
|
|
|
@ -5,12 +5,14 @@ use serde::{Deserialize, Serialize};
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
||||||
pub enum DeviceMessage {
|
pub enum DeviceMessage {
|
||||||
Status(StatusMessage),
|
Status(StatusMessage),
|
||||||
|
PLLSettings(PLLSettings),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq)]
|
||||||
pub enum HostMessage {
|
pub enum HostMessage {
|
||||||
RequestStatus,
|
RequestStatus,
|
||||||
SetPLLOutputs(PLLSettings),
|
SetPLLSettings(PLLSettings),
|
||||||
|
GetPllSettings,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
|
||||||
|
|
Loading…
Reference in New Issue