pub struct AvrTester { /* private fields */ }
Expand description

A comfortable wrapper over simavr that allows to test AVR binaries in seconds.

For more details, please see this repository’s README.

Implementations

Runs a full single instruction, returning the number of cycles it took to execute that instruction (e.g. MUL takes two cycles or so).

Note that the number returned here is somewhat approximate (see: CpuCyclesTaken).

See also: Self::run_for_s(), Self::run_for_ms(), Self::run_for_us().

Runs code for given number of cycles.

See also: Self::run_for_s(), Self::run_for_ms(), Self::run_for_us().

Runs code for given number of AVR seconds, considering the clock specified through AvrTesterBuilder::with_clock().

See: Self::run_for_ms(), Self::run_for_us().

See also: Self::run().

Runs code for given number of AVR milliseconds, considering the clock specified through AvrTesterBuilder::with_clock().

See: Self::run_for_s(), Self::run_for_us().

See also: Self::run().

Runs code for given number of AVR microseconds, considering the clock specified through AvrTesterBuilder::with_clock().

See: Self::run_for_s(), Self::run_for_ms().

See also: Self::run().

Returns an object providing access to the input and output pins (such as ADC1, PD4 etc.).

Note that the returned object contains all possible pins for all of the existing AVRs, while the AVR of yours probably supports only a subset of those pins - trying to access a pin that does not exist for your AVR will gracefully panic!().

Returns an object providing access to UART0 (i.e. the default UART).

Note that if your AVR doesn’t support UART0, operating on it will gracefully panic!().

Returns an object providing access to UART1.

Note that if your AVR doesn’t support UART1, operating on it will gracefully panic!().

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.