Struct stm32f4xx_hal::serial::config::Config
source · pub struct Config {
pub baudrate: Bps,
pub wordlength: WordLength,
pub parity: Parity,
pub stopbits: StopBits,
pub dma: DmaConfig,
}
Fields§
§baudrate: Bps
§wordlength: WordLength
§parity: Parity
§stopbits: StopBits
§dma: DmaConfig
Implementations§
source§impl Config
impl Config
pub fn baudrate(self, baudrate: Bps) -> Self
pub fn parity_none(self) -> Self
pub fn parity_even(self) -> Self
pub fn parity_odd(self) -> Self
pub fn wordlength_8(self) -> Self
pub fn wordlength_9(self) -> Self
pub fn stopbits(self, stopbits: StopBits) -> Self
pub fn dma(self, dma: DmaConfig) -> Self
Trait Implementations§
source§impl PartialEq for Config
impl PartialEq for Config
impl Copy for Config
impl Eq for Config
impl StructuralEq for Config
impl StructuralPartialEq for Config
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§
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