pub struct FullConfig { /* private fields */ }
Implementations§
Source§impl FullConfig
impl FullConfig
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
Sourcepub fn swap_pins(self) -> Self
pub fn swap_pins(self) -> Self
Swap the Tx/Rx pins
The peripheral will transmit on the pin given as the rx
argument.
pub fn fifo_enable(self) -> Self
pub fn tx_fifo_threshold(self, threshold: FifoThreshold) -> Self
pub fn rx_fifo_threshold(self, threshold: FifoThreshold) -> Self
pub fn tx_fifo_enable_interrupt(self) -> Self
pub fn rx_fifo_enable_interrupt(self) -> Self
Sourcepub fn receiver_timeout_us(self, timeout_us: u32) -> Self
pub fn receiver_timeout_us(self, timeout_us: u32) -> Self
Configure receiver timout in microseconds. Call after baudrate is set.
Trait Implementations§
Source§impl Clone for FullConfig
impl Clone for FullConfig
Source§fn clone(&self) -> FullConfig
fn clone(&self) -> FullConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for FullConfig
impl Default for FullConfig
Source§fn default() -> FullConfig
fn default() -> FullConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for FullConfig
impl PartialEq for FullConfig
Source§impl PartialOrd for FullConfig
impl PartialOrd for FullConfig
Source§impl SerialExt<USART1, FullConfig> for USART1
impl SerialExt<USART1, FullConfig> for USART1
fn usart<PINS: Pins<USART1>>( self, pins: PINS, config: FullConfig, rcc: &mut Rcc, ) -> Result<Serial<USART1, FullConfig>, InvalidConfig>
Source§impl SerialExt<USART2, FullConfig> for USART2
impl SerialExt<USART2, FullConfig> for USART2
fn usart<PINS: Pins<USART2>>( self, pins: PINS, config: FullConfig, rcc: &mut Rcc, ) -> Result<Serial<USART2, FullConfig>, InvalidConfig>
impl Copy for FullConfig
impl Eq for FullConfig
impl StructuralPartialEq for FullConfig
Auto Trait Implementations§
impl Freeze for FullConfig
impl RefUnwindSafe for FullConfig
impl Send for FullConfig
impl Sync for FullConfig
impl Unpin for FullConfig
impl UnwindSafe for FullConfig
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