pub struct Vce {
pub palette: Vec<u16>,
pub control: u8,
pub address: u16,
pub rgb_table: Vec<(u8, u8, u8)>,
pub palette_log: Vec<(i64, u16, u16)>,
}Fields§
§palette: Vec<u16>§control: u8§address: u16§rgb_table: Vec<(u8, u8, u8)>Host-side: not state (a loaded state keeps the system’s own table).
palette_log: Vec<(i64, u16, u16)>(mclk, entry, value) of every palette change, drained by the line capture.
Implementations§
Source§impl Vce
impl Vce
pub fn new(power_on: Option<&mut PythonRandom>) -> Vce
pub fn dot_divider(&self) -> i64
pub fn monochrome(&self) -> bool
pub fn bit2(&self) -> bool
pub fn rgb(&self, entry: usize) -> (u8, u8, u8)
pub fn read(&mut self, offset: u32, _mclk: i64) -> u8
pub fn write(&mut self, offset: u32, value: u8, mclk: i64)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vce
impl<'de> Deserialize<'de> for Vce
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Vce
impl StructuralPartialEq for Vce
Auto Trait Implementations§
impl Freeze for Vce
impl RefUnwindSafe for Vce
impl Send for Vce
impl Sync for Vce
impl Unpin for Vce
impl UnwindSafe for Vce
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more