Struct stm32l4xx_hal::serial::Config
source · [−]pub struct Config { /* private fields */ }
Expand description
USART Configuration structure
Implementations
sourceimpl Config
impl Config
sourcepub fn parity_none(self) -> Self
pub fn parity_none(self) -> Self
Set parity to none
sourcepub fn parity_even(self) -> Self
pub fn parity_even(self) -> Self
Set parity to even
sourcepub fn parity_odd(self) -> Self
pub fn parity_odd(self) -> Self
Set parity to odd
sourcepub fn oversampling(self, oversampling: Oversampling) -> Self
pub fn oversampling(self, oversampling: Oversampling) -> Self
Set the oversampling size
sourcepub fn character_match(self, character_match: u8) -> Self
pub fn character_match(self, character_match: u8) -> Self
Set the character match character
sourcepub fn receiver_timeout(self, receiver_timeout: u32) -> Self
pub fn receiver_timeout(self, receiver_timeout: u32) -> Self
Set the receiver timeout, the value is the number of bit durations
Note that it only takes 24 bits, using more than this will cause a panic.
sourcepub fn with_overrun_disabled(self) -> Self
pub fn with_overrun_disabled(self) -> Self
Disable overrun detection
sourcepub fn with_onebit_sampling(self) -> Self
pub fn with_onebit_sampling(self) -> Self
Change to onebit sampling
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more