#[repr(transparent)]pub struct Ctrl(pub u32);Expand description
Control Register
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrl
impl Ctrl
Sourcepub const fn set_els_en(&mut self, val: bool)
pub const fn set_els_en(&mut self, val: bool)
ELS enable
Sourcepub const fn els_start(&self) -> bool
pub const fn els_start(&self) -> bool
Write to 1 to start an ELS operation. Writing 0 has no effect.
Sourcepub const fn set_els_start(&mut self, val: bool)
pub const fn set_els_start(&mut self, val: bool)
Write to 1 to start an ELS operation. Writing 0 has no effect.
Sourcepub const fn els_reset(&self) -> bool
pub const fn els_reset(&self) -> bool
Write to 1 to perform an ELS synchronous reset. Writing 0 has no effect.
Sourcepub const fn set_els_reset(&mut self, val: bool)
pub const fn set_els_reset(&mut self, val: bool)
Write to 1 to perform an ELS synchronous reset. Writing 0 has no effect.
Sourcepub const fn set_els_cmd(&mut self, val: u8)
pub const fn set_els_cmd(&mut self, val: u8)
ELS Command ID
Sourcepub const fn byte_order(&self) -> ByteOrder
pub const fn byte_order(&self) -> ByteOrder
Defines endianness
Sourcepub const fn set_byte_order(&mut self, val: ByteOrder)
pub const fn set_byte_order(&mut self, val: ByteOrder)
Defines endianness
Trait Implementations§
impl Copy for Ctrl
impl Eq for Ctrl
impl StructuralPartialEq for Ctrl
Auto Trait Implementations§
impl Freeze for Ctrl
impl RefUnwindSafe for Ctrl
impl Send for Ctrl
impl Sync for Ctrl
impl Unpin for Ctrl
impl UnwindSafe for Ctrl
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