BoardOptions

Struct BoardOptions 

Source
pub struct BoardOptions {
Show 13 fields pub machine: Machine, pub card: Option<Box<dyn Card>>, pub port: Option<Box<dyn PortDevice>>, pub pad: Option<Box<dyn ControllerPort>>, pub pixel_path: Option<Box<dyn PixelPath>>, pub power_on_seed: Option<i64>, pub start_line: i64, pub start_offset: i64, pub vblank_dots: Option<i64>, pub vertical_at_line_start: bool, pub dma_resumes: bool, pub psg: PsgSwitches, pub timer_underflow_window_mclk: i64,
}
Expand description

The reference’s Board(...) arguments, with its defaults.

Fields§

§machine: Machine§card: Option<Box<dyn Card>>§port: Option<Box<dyn PortDevice>>§pad: Option<Box<dyn ControllerPort>>§pixel_path: Option<Box<dyn PixelPath>>§power_on_seed: Option<i64>

None powers up with zeros (U7, deterministic); a seed randomises RAM, VRAM, the sprite table and the colour table reproducibly (Python’s random.Random(seed)).

§start_line: i64

The raster line at time zero (U1: the real power-up phase is not published).

§start_offset: i64§vblank_dots: Option<i64>

U19: see vdc::sequencer::Sequencer::vblank_dots.

§vertical_at_line_start: bool§dma_resumes: bool

C7: see vdc/dma.rs.

§psg: PsgSwitches

The PSG’s switches (class attributes of the reference’s Psg).

§timer_underflow_window_mclk: i64

C25 (the reference’s Timer.underflow_window_mclk).

Trait Implementations§

Source§

impl Default for BoardOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.