pub struct UsartConfig9 { /* private fields */ }Expand description
Configuration for Usart::new_word.
The 9-bit path is always 9 data bits, no parity, so there is no frame format to choose.
Implementations§
Source§impl UsartConfig9
impl UsartConfig9
Sourcepub const fn baud(self, baud: Bps) -> Self
pub const fn baud(self, baud: Bps) -> Self
Sets the bit rate. See the baud module for named constants.
Sourcepub const fn oversampling(self, oversampling: Oversampling) -> Self
pub const fn oversampling(self, oversampling: Oversampling) -> Self
Sets the oversampling ratio.
Trait Implementations§
Source§impl Clone for UsartConfig9
impl Clone for UsartConfig9
Source§fn clone(&self) -> UsartConfig9
fn clone(&self) -> UsartConfig9
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UsartConfig9
Source§impl Default for UsartConfig9
impl Default for UsartConfig9
impl Eq for UsartConfig9
Source§impl Format for UsartConfig9
impl Format for UsartConfig9
Source§impl PartialEq for UsartConfig9
impl PartialEq for UsartConfig9
impl StructuralPartialEq for UsartConfig9
Auto Trait Implementations§
impl Freeze for UsartConfig9
impl RefUnwindSafe for UsartConfig9
impl Send for UsartConfig9
impl Sync for UsartConfig9
impl Unpin for UsartConfig9
impl UnsafeUnpin for UsartConfig9
impl UnwindSafe for UsartConfig9
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