pub struct BasicConfig { /* private fields */ }
Implementations§
Source§impl BasicConfig
impl BasicConfig
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_7(self) -> Self
pub fn wordlength_8(self) -> Self
pub fn wordlength_9(self) -> Self
pub fn stopbits(self, stopbits: StopBits) -> Self
pub fn invert_tx(self) -> Self
pub fn invert_rx(self) -> Self
Trait Implementations§
Source§impl Clone for BasicConfig
impl Clone for BasicConfig
Source§fn clone(&self) -> BasicConfig
fn clone(&self) -> BasicConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for BasicConfig
impl Default for BasicConfig
Source§fn default() -> BasicConfig
fn default() -> BasicConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for BasicConfig
impl PartialEq for BasicConfig
Source§impl PartialOrd for BasicConfig
impl PartialOrd for BasicConfig
Source§impl SerialExt<LPUART, BasicConfig> for LPUART
impl SerialExt<LPUART, BasicConfig> for LPUART
fn usart<PINS: Pins<LPUART>>( self, pins: PINS, config: BasicConfig, rcc: &mut Rcc, ) -> Result<Serial<LPUART, BasicConfig>, InvalidConfig>
Source§impl SerialExt<USART3, BasicConfig> for USART3
impl SerialExt<USART3, BasicConfig> for USART3
fn usart<PINS: Pins<USART3>>( self, pins: PINS, config: BasicConfig, rcc: &mut Rcc, ) -> Result<Serial<USART3, BasicConfig>, InvalidConfig>
Source§impl SerialExt<USART4, BasicConfig> for USART4
impl SerialExt<USART4, BasicConfig> for USART4
fn usart<PINS: Pins<USART4>>( self, pins: PINS, config: BasicConfig, rcc: &mut Rcc, ) -> Result<Serial<USART4, BasicConfig>, InvalidConfig>
impl Copy for BasicConfig
impl Eq for BasicConfig
impl StructuralPartialEq for BasicConfig
Auto Trait Implementations§
impl Freeze for BasicConfig
impl RefUnwindSafe for BasicConfig
impl Send for BasicConfig
impl Sync for BasicConfig
impl Unpin for BasicConfig
impl UnwindSafe for BasicConfig
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