MOSComplexInterfaceAdapter6526

Struct MOSComplexInterfaceAdapter6526 

Source
#[repr(C, packed(1))]
pub struct MOSComplexInterfaceAdapter6526 { pub port_a: RW<GameController>, pub port_b: RW<GameController>, pub data_direction_port_a: RW<u8>, pub data_direction_port_b: RW<u8>, pub timer_a: RW<u16>, pub timer_b: RW<u16>, pub time_of_day: TimeOfDay, pub serial_shift: RW<u8>, pub interrupt: RW<u8>, pub control_a: RW<u8>, pub control_b: RW<u8>, }
Expand description

Registers for the MOS Tehnology Complex Interface Adapter 6526

The CIA served as an I/O port controller for the 6502 family of microprocessors, providing for parallel and serial I/O capabilities as well as timers and a Time-of-Day (TOD) clock. The device’s most prominent use was in the Commodore 64 and Commodore 128(D), each of which included two CIA chips.

Fields§

§port_a: RW<GameController>§port_b: RW<GameController>§data_direction_port_a: RW<u8>§data_direction_port_b: RW<u8>§timer_a: RW<u16>§timer_b: RW<u16>§time_of_day: TimeOfDay§serial_shift: RW<u8>§interrupt: RW<u8>§control_a: RW<u8>§control_b: RW<u8>

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, 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.