Struct Cr2
#[repr(transparent)]pub struct Cr2(pub u32);Expand description
Control register 2
Tuple Fields§
§0: u32Implementations§
§impl Cr2
impl Cr2
pub const fn dis_nss(&self) -> bool
pub const fn dis_nss(&self) -> bool
NSS pin enable. When set, the NSS pin input is ignored and the SPI slave is always selected (not available on all chips/instances; not available on LPUART)
pub const fn set_dis_nss(&mut self, val: bool)
pub const fn set_dis_nss(&mut self, val: bool)
NSS pin enable. When set, the NSS pin input is ignored and the SPI slave is always selected (not available on all chips/instances; not available on LPUART)
pub const fn set_lbdie(&mut self, val: bool)
pub const fn set_lbdie(&mut self, val: bool)
LIN break detection interrupt enable (not available on LPUART)
pub const fn set_datainv(&mut self, val: bool)
pub const fn set_datainv(&mut self, val: bool)
Binary data inversion
pub const fn set_msbfirst(&mut self, val: Msbfirst)
pub const fn set_msbfirst(&mut self, val: Msbfirst)
Most significant bit first
pub const fn set_abrmod(&mut self, val: Abrmod)
pub const fn set_abrmod(&mut self, val: Abrmod)
Auto baud rate mode (not available on LPUART)
Trait Implementations§
impl Copy for Cr2
impl Eq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementations§
impl Freeze for Cr2
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin for Cr2
impl UnsafeUnpin for Cr2
impl UnwindSafe for Cr2
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