#[repr(transparent)]pub struct Loader(pub u32);Expand description
Contains an optional loader to load into CTRL0/1 in steps to perform a set of operations.
Tuple Fields§
§0: u32Implementations§
Source§impl Loader
impl Loader
Sourcepub const fn count(&self) -> u8
pub const fn count(&self) -> u8
Number of control pairs to load 0 relative (so 1 means load 1). write 1 means Does one op - does not iterate, write N means N control pairs to load
Sourcepub const fn set_count(&mut self, val: u8)
pub const fn set_count(&mut self, val: u8)
Number of control pairs to load 0 relative (so 1 means load 1). write 1 means Does one op - does not iterate, write N means N control pairs to load
Sourcepub const fn ctrlbpair(&self) -> Ctrlbpair
pub const fn ctrlbpair(&self) -> Ctrlbpair
Which bank-pair the offset CTRLOFF is within. This must be 0 if only 2-up. Does not matter which bank is used as this is loaded when not performing an operation.
Sourcepub const fn set_ctrlbpair(&mut self, val: Ctrlbpair)
pub const fn set_ctrlbpair(&mut self, val: Ctrlbpair)
Which bank-pair the offset CTRLOFF is within. This must be 0 if only 2-up. Does not matter which bank is used as this is loaded when not performing an operation.
Sourcepub const fn set_ctrloff(&mut self, val: u16)
pub const fn set_ctrloff(&mut self, val: u16)
DWord Offset of CTRL pair to load next.
Trait Implementations§
impl Copy for Loader
impl Eq for Loader
impl StructuralPartialEq for Loader
Auto Trait Implementations§
impl Freeze for Loader
impl RefUnwindSafe for Loader
impl Send for Loader
impl Sync for Loader
impl Unpin for Loader
impl UnwindSafe for Loader
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