Struct Cr1
#[repr(transparent)]pub struct Cr1(pub u32);Expand description
control register 1
Tuple Fields§
§0: u32Implementations§
§impl Cr1
impl Cr1
pub const fn set_lsbfirst(&mut self, val: Lsbfirst)
pub const fn set_lsbfirst(&mut self, val: Lsbfirst)
Frame format
pub const fn set_rxonly(&mut self, val: Rxonly)
pub const fn set_rxonly(&mut self, val: Rxonly)
Receive only
pub const fn set_crcnext(&mut self, val: Crcnext)
pub const fn set_crcnext(&mut self, val: Crcnext)
CRC transfer next
pub const fn set_bidioe(&mut self, val: Bidioe)
pub const fn set_bidioe(&mut self, val: Bidioe)
Select the direction of transfer in bidirectional mode
pub const fn set_bidimode(&mut self, val: Bidimode)
pub const fn set_bidimode(&mut self, val: Bidimode)
Bidirectional data mode enable
Trait Implementations§
impl Copy for Cr1
impl Eq for Cr1
impl StructuralPartialEq for Cr1
Auto Trait Implementations§
impl Freeze for Cr1
impl RefUnwindSafe for Cr1
impl Send for Cr1
impl Sync for Cr1
impl Unpin for Cr1
impl UnwindSafe for Cr1
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