Struct avr_tester::AvrTesterBuilder
source · [−]pub struct AvrTesterBuilder { /* private fields */ }
Implementations
sourceimpl AvrTesterBuilder
impl AvrTesterBuilder
sourcepub fn new(mcu: impl ToString) -> Self
pub fn new(mcu: impl ToString) -> Self
Creates AvrTesterBuilder
.
To avoid typos, it’s preferred that you use helper functions such as
AvrTester::atmega328p()
; this additional constructor in here has
been provided just in case there’s some AVR supported by simavr that has
not been yet exposed through AvrTester
.
pub fn with_clock(self, clock: u32) -> Self
pub fn with_clock_of_1_mhz(self) -> Self
pub fn with_clock_of_4_mhz(self) -> Self
pub fn with_clock_of_8_mhz(self) -> Self
pub fn with_clock_of_16_mhz(self) -> Self
pub fn with_clock_of_20_mhz(self) -> Self
pub fn with_clock_of_24_mhz(self) -> Self
pub fn load(self, firmware: impl AsRef<Path>) -> AvrTester
Auto Trait Implementations
impl RefUnwindSafe for AvrTesterBuilder
impl Send for AvrTesterBuilder
impl Sync for AvrTesterBuilder
impl Unpin for AvrTesterBuilder
impl UnwindSafe for AvrTesterBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more