#[repr(transparent)]pub struct NBaud(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl NBaud
impl NBaud
Sourcepub const fn sbns(&self) -> bool
pub const fn sbns(&self) -> bool
Stop Bit Number Select. Raw bit values: false (0) = One: One stop bit.; true (1) = Two: Two stop bits.
Sourcepub const fn set_sbns(&mut self, val: bool)
pub const fn set_sbns(&mut self, val: bool)
Stop Bit Number Select. Raw bit values: false (0) = One: One stop bit.; true (1) = Two: Two stop bits.
Sourcepub const fn set_rxedgie(&mut self, val: bool)
pub const fn set_rxedgie(&mut self, val: bool)
RX Input Active Edge Interrupt Enable.
Sourcepub const fn set_lbkdie(&mut self, val: bool)
pub const fn set_lbkdie(&mut self, val: bool)
LIN Break Detect Interrupt Enable.
Sourcepub const fn resyncdis(&self) -> bool
pub const fn resyncdis(&self) -> bool
Resynchronization Disable. Raw bit values: false (0) = Resync: Enable.; true (1) = NoResync: Disable.
Sourcepub const fn set_resyncdis(&mut self, val: bool)
pub const fn set_resyncdis(&mut self, val: bool)
Resynchronization Disable. Raw bit values: false (0) = Resync: Enable.; true (1) = NoResync: Disable.
Sourcepub const fn set_bothedge(&mut self, val: bool)
pub const fn set_bothedge(&mut self, val: bool)
Both Edge Sampling.
Sourcepub const fn set_matcfg(&mut self, val: Matcfg)
pub const fn set_matcfg(&mut self, val: Matcfg)
Match Configuration.
Sourcepub const fn set_ridmae(&mut self, val: bool)
pub const fn set_ridmae(&mut self, val: bool)
Receiver Idle DMA Enable.
Trait Implementations§
impl Copy for NBaud
impl Eq for NBaud
impl StructuralPartialEq for NBaud
Auto Trait Implementations§
impl Freeze for NBaud
impl RefUnwindSafe for NBaud
impl Send for NBaud
impl Sync for NBaud
impl Unpin for NBaud
impl UnwindSafe for NBaud
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