#[repr(transparent)]pub struct Shiftcfg(pub u32);Expand description
Shifter Configuration.
Tuple Fields§
§0: u32Implementations§
Source§impl Shiftcfg
impl Shiftcfg
Sourcepub const fn set_sstart(&mut self, val: Sstart)
pub const fn set_sstart(&mut self, val: Sstart)
Shifter Start.
Sourcepub const fn insrc(&self) -> bool
pub const fn insrc(&self) -> bool
Input Source. Raw bit values: false (0) = Pin: Pin.; true (1) = ShifterNplus1: Shifter n+1 output.
Sourcepub const fn set_insrc(&mut self, val: bool)
pub const fn set_insrc(&mut self, val: bool)
Input Source. Raw bit values: false (0) = Pin: Pin.; true (1) = ShifterNplus1: Shifter n+1 output.
Sourcepub const fn latst(&self) -> bool
pub const fn latst(&self) -> bool
Late Store. Raw bit values: false (0) = Preshift: Store the pre-shift register state.; true (1) = Postshift: Store the post-shift register state.
Sourcepub const fn set_latst(&mut self, val: bool)
pub const fn set_latst(&mut self, val: bool)
Late Store. Raw bit values: false (0) = Preshift: Store the pre-shift register state.; true (1) = Postshift: Store the post-shift register state.
Sourcepub const fn ssize(&self) -> bool
pub const fn ssize(&self) -> bool
Shifter Size. Raw bit values: false (0) = Width32: 32-bit.; true (1) = Width24: 24-bit.
Sourcepub const fn set_ssize(&mut self, val: bool)
pub const fn set_ssize(&mut self, val: bool)
Shifter Size. Raw bit values: false (0) = Width32: 32-bit.; true (1) = Width24: 24-bit.
Sourcepub const fn set_pwidth(&mut self, val: u8)
pub const fn set_pwidth(&mut self, val: u8)
Parallel Width.
Trait Implementations§
impl Copy for Shiftcfg
impl Eq for Shiftcfg
impl StructuralPartialEq for Shiftcfg
Auto Trait Implementations§
impl Freeze for Shiftcfg
impl RefUnwindSafe for Shiftcfg
impl Send for Shiftcfg
impl Sync for Shiftcfg
impl Unpin for Shiftcfg
impl UnwindSafe for Shiftcfg
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