[][src]Struct bl602_hal::serial::Config

pub struct Config {
    pub baudrate: Baud,
    pub order: Order,
    pub parity: Parity,
    pub stopbits: StopBits,
    pub wordlength: WordLength,
}

Serial configuration

Fields

baudrate: Baudorder: Orderparity: Paritystopbits: StopBitswordlength: WordLength

Implementations

impl Config[src]

pub fn baudrate(self, baudrate: impl Into<Baud>) -> Self[src]

Sets the target baudrate

pub fn parity_none(self) -> Self[src]

Sets parity to no parity check

pub fn parity_even(self) -> Self[src]

Sets parity check to even

pub fn parity_odd(self) -> Self[src]

Sets parity check to odd

pub fn stopbits(self, stopbits: StopBits) -> Self[src]

Sets the target stopbits

Trait Implementations

impl Clone for Config[src]

impl Copy for Config[src]

impl Debug for Config[src]

impl Default for Config[src]

impl PartialEq<Config> for Config[src]

impl StructuralPartialEq for Config[src]

Auto Trait Implementations

impl Send for Config

impl Sync for Config

impl Unpin for Config

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.