pub struct SimConfig {
pub home_id: u32,
pub nvm_size: usize,
pub frame_gap: Duration,
pub long_range: bool,
pub nvm: Option<Vec<u8>>,
}Expand description
The simulated controller’s identity.
Fields§
§home_id: u32Home id.
nvm_size: usizeSize of the simulated NVM image.
frame_gap: DurationPause between frames the simulator sends, so a host reads them one by one.
long_range: boolAccept 16-bit node ids (and so Long Range), as 700 and 800 series sticks with Long Range do.
nvm: Option<Vec<u8>>The NVM image to start with (by default nvm_size bytes of a pattern).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimConfig
impl RefUnwindSafe for SimConfig
impl Send for SimConfig
impl Sync for SimConfig
impl Unpin for SimConfig
impl UnsafeUnpin for SimConfig
impl UnwindSafe for SimConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more