BoardPins

Struct BoardPins 

Source
pub struct BoardPins<'a> {
    pub irq2: &'a mut IrqLine,
    pub vdcs: &'a mut [Vdc],
    pub opcode: u8,
    pub card: Option<&'a mut (dyn Card + 'static)>,
    /* private fields */
}
Expand description

What the board hands a card, a port device or the pixel path with every call.

Fields§

§irq2: &'a mut IrqLine

The shared IRQ2 level (HuCard, expansion port, CD ADPCM): the device sets its own bit.

§vdcs: &'a mut [Vdc]

The board’s VDC instances (machine.vdc_count of them): the SuperGrafx’s VPC claims their pages and steers each access to one.

§opcode: u8

The opcode of the instruction the CPU is running (Pins::opcode; 0 with no CPU): the VPC steers only ST0-ST2, which the bus cannot tell from stores to $FF:0000/2/3.

§card: Option<&'a mut (dyn Card + 'static)>

The card in the slot, for the port device and the pixel path (None for the card’s own calls and for an empty slot).

Implementations§

Source§

impl BoardPins<'_>

Source

pub fn hold(&mut self, clocks: i64)

Stretch the current CPU cycle by this many master clocks (RDY held low), applied by the board once the access returns.

Auto Trait Implementations§

§

impl<'a> Freeze for BoardPins<'a>

§

impl<'a> !RefUnwindSafe for BoardPins<'a>

§

impl<'a> !Send for BoardPins<'a>

§

impl<'a> !Sync for BoardPins<'a>

§

impl<'a> Unpin for BoardPins<'a>

§

impl<'a> !UnwindSafe for BoardPins<'a>

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.