pub struct USART2 { /* private fields */ }
Expand description
Universal synchronous asynchronous receiver transmitter
Implementations§
Trait Implementations§
Source§impl<MODE> DriverEnablePin<USART2> for PA1<MODE>
impl<MODE> DriverEnablePin<USART2> for PA1<MODE>
Source§impl<MODE> DriverEnablePin<USART2> for PD4<MODE>
impl<MODE> DriverEnablePin<USART2> for PD4<MODE>
Source§impl Enable for USART2
impl Enable for USART2
Source§fn is_enabled() -> bool
fn is_enabled() -> bool
Check if peripheral enabled
Source§fn is_disabled() -> bool
fn is_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn enable_unchecked()
unsafe fn enable_unchecked()
Safety Read more
Source§unsafe fn disable_unchecked()
unsafe fn disable_unchecked()
Safety Read more
Source§impl SMEnable for USART2
impl SMEnable for USART2
Source§fn sleep_mode_enable(rcc: &mut Rcc)
fn sleep_mode_enable(rcc: &mut Rcc)
Enables peripheral
Source§fn sleep_mode_disable(rcc: &mut Rcc)
fn sleep_mode_disable(rcc: &mut Rcc)
Disables peripheral
Source§fn is_sleep_mode_enabled() -> bool
fn is_sleep_mode_enabled() -> bool
Check if peripheral enabled
Source§fn is_sleep_mode_disabled() -> bool
fn is_sleep_mode_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn sleep_mode_enable_unchecked()
unsafe fn sleep_mode_enable_unchecked()
Safety Read more
Source§unsafe fn sleep_mode_disable_unchecked()
unsafe fn sleep_mode_disable_unchecked()
Safety Read more
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 Send for USART2
Auto Trait Implementations§
impl Freeze for USART2
impl RefUnwindSafe for USART2
impl !Sync for USART2
impl Unpin for USART2
impl UnwindSafe for USART2
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