pub struct UartConfig {
pub tx_pin: u8,
pub rx_pin: u8,
pub cts_pin: Option<u8>,
pub rts_pin: Option<u8>,
pub params: UartParams,
}Expand description
UART peripheral configuration.
Pin numbers (tx_pin, rx_pin) are target-specific and must be set by
the port binary before use. There are no cross-platform default values;
each port crate defines pin assignments in its src/bin/ entry point.
See the ssh-stamp-esp32 binary’s module documentation for ESP32 defaults.
Fields§
§tx_pin: u8§rx_pin: u8§cts_pin: Option<u8>§rts_pin: Option<u8>§params: UartParamsTrait Implementations§
Source§impl Clone for UartConfig
impl Clone for UartConfig
Source§impl Debug for UartConfig
impl Debug for UartConfig
Auto Trait Implementations§
impl Freeze for UartConfig
impl RefUnwindSafe for UartConfig
impl Send for UartConfig
impl Sync for UartConfig
impl Unpin for UartConfig
impl UnsafeUnpin for UartConfig
impl UnwindSafe for UartConfig
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