pub struct VdcRegisters {
pub select: u8,
pub value: [u16; 32],
pub read_buffer: u16,
pub write_latch: u8,
}Expand description
Raw 16-bit register values, with the fields the sequencer uses as methods.
Fields§
§select: u8§value: [u16; 32]§read_buffer: u16[hw: pcetech 5.1] The read buffer is indeterminate on power-up, “usually $FFFF”.
write_latch: u8Implementations§
Source§impl VdcRegisters
impl VdcRegisters
pub fn new() -> VdcRegisters
pub fn set_byte(&mut self, register: usize, byte: u8, msb: bool)
pub fn cr(&self) -> u16
pub fn increment(&self) -> u16
pub fn rcr(&self) -> i64
pub fn mwr(&self) -> u16
pub fn hds(&self) -> i64
pub fn hdw(&self) -> i64
pub fn hde(&self) -> i64
pub fn vsw(&self) -> i64
pub fn vds(&self) -> i64
pub fn vdw(&self) -> i64
pub fn vcr(&self) -> i64
Trait Implementations§
Source§impl Clone for VdcRegisters
impl Clone for VdcRegisters
Source§fn clone(&self) -> VdcRegisters
fn clone(&self) -> VdcRegisters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VdcRegisters
impl Debug for VdcRegisters
Source§impl Default for VdcRegisters
impl Default for VdcRegisters
Source§impl<'de> Deserialize<'de> for VdcRegisters
impl<'de> Deserialize<'de> for VdcRegisters
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
Source§impl PartialEq for VdcRegisters
impl PartialEq for VdcRegisters
Source§impl Serialize for VdcRegisters
impl Serialize for VdcRegisters
impl Eq for VdcRegisters
impl StructuralPartialEq for VdcRegisters
Auto Trait Implementations§
impl Freeze for VdcRegisters
impl RefUnwindSafe for VdcRegisters
impl Send for VdcRegisters
impl Sync for VdcRegisters
impl Unpin for VdcRegisters
impl UnwindSafe for VdcRegisters
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