#[repr(C)]pub struct Csr { /* private fields */ }
Implementations§
Source§impl Csr
impl Csr
pub const ZERO: Self = _
pub const fn new() -> Self
👎Deprecated: Use Csr::Default (or Csr::DEFAULT in const context) instead
Sourcepub const fn new_with_raw_value(value: u8) -> Csr
pub const fn new_with_raw_value(value: u8) -> Csr
Creates a new instance of this bitfield with the given raw value.
No checks are performed on the value, so it is possible to set bits that don’t have any accessors specified.
Sourcepub const fn builder() -> PartialCsr<0>
pub const fn builder() -> PartialCsr<0>
Creates a builder for this bitfield which ensures that all writable fields are initialized
pub const fn lsb_first(&self) -> bool
pub const fn with_lsb_first(&self, field_value: bool) -> Self
pub fn set_lsb_first(&mut self, field_value: bool)
pub const fn mode(&self) -> Mode
pub const fn with_mode(&self, field_value: Mode) -> Self
pub fn set_mode(&mut self, field_value: Mode)
pub const fn channel(&self) -> u4
pub const fn with_channel(&self, field_value: u4) -> Self
pub fn set_channel(&mut self, field_value: u4)
Trait Implementations§
impl Copy for Csr
impl StructuralPartialEq for Csr
Auto Trait Implementations§
impl Freeze for Csr
impl RefUnwindSafe for Csr
impl Send for Csr
impl Sync for Csr
impl Unpin for Csr
impl UnwindSafe for Csr
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