Trait spectrusty_peripherals::ay::AyRegRecorder
source · pub trait AyRegRecorder {
type Timestamp;
fn record_ay_reg_change(
&mut self,
reg: AyRegister,
val: u8,
timestamp: Self::Timestamp
);
fn clear_ay_reg_changes(&mut self);
}
Expand description
Allows recording of changes to AY-3-8910 audio registers with timestamps.
Required Associated Types§
Required Methods§
sourcefn record_ay_reg_change(
&mut self,
reg: AyRegister,
val: u8,
timestamp: Self::Timestamp
)
fn record_ay_reg_change(
&mut self,
reg: AyRegister,
val: u8,
timestamp: Self::Timestamp
)
Should record a new value of indicated register with the given timestamp
.
NOTE: It is up to the caller to ensure the timestamps are added in an ascending order.
sourcefn clear_ay_reg_changes(&mut self)
fn clear_ay_reg_changes(&mut self)
Should remove data from the recorder.