Trait stm32f4xx_hal::serial::SerialExt
source · pub trait SerialExt: Sized + Instance {
// Required methods
fn serial<WORD>(
self,
pins: (impl Into<Self::Tx<PushPull>>, impl Into<Self::Rx<PushPull>>),
config: impl Into<Config>,
clocks: &Clocks
) -> Result<Serial<Self, WORD>, InvalidConfig>;
fn tx<WORD>(
self,
tx_pin: impl Into<Self::Tx<PushPull>>,
config: impl Into<Config>,
clocks: &Clocks
) -> Result<Tx<Self, WORD>, InvalidConfig>
where NoPin: Into<Self::Rx<PushPull>>;
fn rx<WORD>(
self,
rx_pin: impl Into<Self::Rx<PushPull>>,
config: impl Into<Config>,
clocks: &Clocks
) -> Result<Rx<Self, WORD>, InvalidConfig>
where NoPin: Into<Self::Tx<PushPull>>;
}
Required Methods§
fn serial<WORD>( self, pins: (impl Into<Self::Tx<PushPull>>, impl Into<Self::Rx<PushPull>>), config: impl Into<Config>, clocks: &Clocks ) -> Result<Serial<Self, WORD>, InvalidConfig>
fn tx<WORD>( self, tx_pin: impl Into<Self::Tx<PushPull>>, config: impl Into<Config>, clocks: &Clocks ) -> Result<Tx<Self, WORD>, InvalidConfig>
fn rx<WORD>( self, rx_pin: impl Into<Self::Rx<PushPull>>, config: impl Into<Config>, clocks: &Clocks ) -> Result<Rx<Self, WORD>, InvalidConfig>
Object Safety§
This trait is not object safe.