Struct stm32_metapac::usart::regs::Cr2
#[repr(transparent)]pub struct Cr2(pub u32);
Expand description
Control register 2
Tuple Fields§
§0: u32
Implementations§
§impl Cr2
impl Cr2
pub fn set_datainv(&mut self, val: bool)
pub fn set_datainv(&mut self, val: bool)
Binary data inversion
pub fn set_msbfirst(&mut self, val: Msbfirst)
pub fn set_msbfirst(&mut self, val: Msbfirst)
Most significant bit first
pub fn set_abrmod(&mut self, val: Abrmod)
pub fn set_abrmod(&mut self, val: Abrmod)
Auto baud rate mode
Trait Implementations§
impl Copy for Cr2
impl Eq for Cr2
impl StructuralEq for Cr2
impl StructuralPartialEq for Cr2
Auto Trait Implementations§
impl RefUnwindSafe for Cr2
impl Send for Cr2
impl Sync for Cr2
impl Unpin 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