Trait spectrusty::chip::UlaControl
source · pub trait UlaControl {
Show 14 methods
fn has_late_timings(&self) -> bool;
fn set_late_timings(&mut self, late_timings: bool);
fn ula128_mem_port_value(&self) -> Option<Ula128MemFlags> { ... }
fn set_ula128_mem_port_value(&mut self, _value: Ula128MemFlags) -> bool { ... }
fn ula3_ctrl_port_value(&self) -> Option<Ula3CtrlFlags> { ... }
fn set_ula3_ctrl_port_value(&mut self, _value: Ula3CtrlFlags) -> bool { ... }
fn scld_ctrl_port_value(&self) -> Option<ScldCtrlFlags> { ... }
fn set_scld_ctrl_port_value(&mut self, _value: ScldCtrlFlags) -> bool { ... }
fn scld_mmu_port_value(&self) -> Option<u8> { ... }
fn set_scld_mmu_port_value(&mut self, _value: u8) -> bool { ... }
fn ulaplus_reg_port_value(&self) -> Option<UlaPlusRegFlags> { ... }
fn set_ulaplus_reg_port_value(&mut self, _value: UlaPlusRegFlags) -> bool { ... }
fn ulaplus_data_port_value(&self) -> Option<u8> { ... }
fn set_ulaplus_data_port_value(&mut self, _value: u8) -> bool { ... }
}
Expand description
Specialized ULA functionality access methods.
Required Methods§
sourcefn has_late_timings(&self) -> bool
fn has_late_timings(&self) -> bool
Returns the state of the “late timings” mode.
sourcefn set_late_timings(&mut self, late_timings: bool)
fn set_late_timings(&mut self, late_timings: bool)
Sets the “late timings” mode on or off.
In this mode interrupts are being requested just one T-state earlier than normally. This results in all other timings being one T-state later.
Provided Methods§
sourcefn ula128_mem_port_value(&self) -> Option<Ula128MemFlags>
fn ula128_mem_port_value(&self) -> Option<Ula128MemFlags>
Returns the last value sent to the memory port 0x7FFD
if supported.
sourcefn set_ula128_mem_port_value(&mut self, _value: Ula128MemFlags) -> bool
fn set_ula128_mem_port_value(&mut self, _value: Ula128MemFlags) -> bool
Sets the current value of the memory port 0x7FFD
. Returns true
if supported.
Otherwise, returns false
and no writing is performed.
sourcefn ula3_ctrl_port_value(&self) -> Option<Ula3CtrlFlags>
fn ula3_ctrl_port_value(&self) -> Option<Ula3CtrlFlags>
Returns the last value sent to the memory port 0x1FFD
if supported.
sourcefn set_ula3_ctrl_port_value(&mut self, _value: Ula3CtrlFlags) -> bool
fn set_ula3_ctrl_port_value(&mut self, _value: Ula3CtrlFlags) -> bool
Sets the current value of the memory port 0x1FFD
. Returns true
if supported.
Otherwise, returns false
and no writing is performed.
sourcefn scld_ctrl_port_value(&self) -> Option<ScldCtrlFlags>
fn scld_ctrl_port_value(&self) -> Option<ScldCtrlFlags>
Returns the last value sent to the memory port 0xFF
.
sourcefn set_scld_ctrl_port_value(&mut self, _value: ScldCtrlFlags) -> bool
fn set_scld_ctrl_port_value(&mut self, _value: ScldCtrlFlags) -> bool
Sets the current value of the memory port 0xFF
. Returns true
if supported.
Otherwise, returns false
and no writing is performed.
sourcefn scld_mmu_port_value(&self) -> Option<u8>
fn scld_mmu_port_value(&self) -> Option<u8>
Returns the last value sent to the memory port 0xF4
.
sourcefn set_scld_mmu_port_value(&mut self, _value: u8) -> bool
fn set_scld_mmu_port_value(&mut self, _value: u8) -> bool
Sets the current value of the memory port 0xF4
. Returns true
if supported.
Otherwise, returns false
and no writing is performed.
sourcefn ulaplus_reg_port_value(&self) -> Option<UlaPlusRegFlags>
fn ulaplus_reg_port_value(&self) -> Option<UlaPlusRegFlags>
Returns the last value sent to the register port 0xBF3B
.
sourcefn set_ulaplus_reg_port_value(&mut self, _value: UlaPlusRegFlags) -> bool
fn set_ulaplus_reg_port_value(&mut self, _value: UlaPlusRegFlags) -> bool
Sets the current value of the memory port 0xBF3B
. Returns true
if supported.
Otherwise, returns false
and no writing is performed.
sourcefn ulaplus_data_port_value(&self) -> Option<u8>
fn ulaplus_data_port_value(&self) -> Option<u8>
Returns the last value sent to the data port 0xFF3B
.
sourcefn set_ulaplus_data_port_value(&mut self, _value: u8) -> bool
fn set_ulaplus_data_port_value(&mut self, _value: u8) -> bool
Sets the current value of the memory port 0xFF3B
. Returns true
if supported.
Otherwise, returns false
and no writing is performed.