pub struct USART2 { /* private fields */ }Expand description
Universal synchronous asynchronous receiver transmitter
Implementations§
Trait Implementations§
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 Instance for USART2
impl Instance for USART2
fn ptr() -> *const RegisterBlock
fn select_sysclock(rcc: &RegisterBlock, sys: bool)
Source§impl LPEnable for USART2
impl LPEnable for USART2
Source§fn low_power_enable(bus: &mut Self::Bus)
fn low_power_enable(bus: &mut Self::Bus)
Enables peripheral
Source§fn low_power_disable(bus: &mut Self::Bus)
fn low_power_disable(bus: &mut Self::Bus)
Disables peripheral
Source§fn is_low_power_enabled() -> bool
fn is_low_power_enabled() -> bool
Check if peripheral enabled
Source§fn is_low_power_disabled() -> bool
fn is_low_power_disabled() -> bool
Check if peripheral disabled
Source§unsafe fn low_power_enable_unchecked()
unsafe fn low_power_enable_unchecked()
Safety Read more
Source§unsafe fn low_power_disable_unchecked()
unsafe fn low_power_disable_unchecked()
Safety Read more
impl PinRx<USART2> for PA3<Alternate<7>>
impl PinRx<USART2> for PD6<Alternate<7>>
impl PinTx<USART2> for PA2<Alternate<7>>
impl PinTx<USART2> for PD5<Alternate<7>>
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