[][src]Trait spectrusty::chip::HostConfig

pub trait HostConfig {
    pub const CPU_HZ: u32;
    pub const FRAME_TSTATES: i32;
    pub fn effective_cpu_rate(multiplier: f64) -> f64 { ... }
pub fn effective_frame_duration_nanos(multiplier: f64) -> u32 { ... }
pub fn effective_frame_duration(multiplier: f64) -> Duration { ... }
pub fn frame_duration_nanos() -> u32 { ... }
pub fn frame_duration() -> Duration { ... } }

A helper trait for accessing parameters of well-known host configurations.

Associated Constants

pub const CPU_HZ: u32[src]

The number of CPU cycles (T-states) per second.

pub const FRAME_TSTATES: i32[src]

The number of CPU cycles (T-states) in a single execution frame.

Loading content...

Provided methods

pub fn effective_cpu_rate(multiplier: f64) -> f64[src]

Returns the CPU rate (T-states / second) after multiplying it by the multiplier.

pub fn effective_frame_duration_nanos(multiplier: f64) -> u32[src]

Returns the duration of a single execution frame in nanoseconds after multiplying the CPU rate by the multiplier.

pub fn effective_frame_duration(multiplier: f64) -> Duration[src]

Returns the duration of a single execution frame after multiplying the CPU rate by the multiplier.

pub fn frame_duration_nanos() -> u32[src]

Returns the duration of a single execution frame in nanoseconds.

pub fn frame_duration() -> Duration[src]

Returns the duration of a single execution frame.

Loading content...

Implementors

impl HostConfig for ZxSpectrum128Config[src]

impl HostConfig for ZxSpectrumNTSCConfig[src]

impl HostConfig for ZxSpectrumPALConfig[src]

impl<B, X> HostConfig for Ula3<B, X>[src]

impl<B, X> HostConfig for Ula128<B, X>[src]

impl<M: PagedMemory8k, B, X> HostConfig for Scld<M, B, X, UlaVideoFrame>[src]

impl<M: ZxMemory, B, X> HostConfig for Ula<M, B, X, UlaVideoFrame>[src]

impl<M: ZxMemory, B, X> HostConfig for UlaNTSC<M, B, X>[src]

impl<U: HostConfig + Video> HostConfig for UlaPlus<U>[src]

Loading content...