pub struct USART2 { /* private fields */ }
Expand description
Universal synchronous asynchronous receiver transmitter
Implementations§
§impl USART2
impl USART2
pub const PTR: *const RegisterBlock = {0x40004400 as *const stm32h7xx_hal::stm32::usart1::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40004400 as *const stm32h7xx_hal::stm32::usart1::RegisterBlock}
Pointer to the register block
pub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations§
§impl SerialExt<USART2> for USART2
impl SerialExt<USART2> for USART2
type Rec = Usart2
fn serial<P>(
self,
_pins: P,
config: impl Into<Config>,
prec: Usart2,
clocks: &CoreClocks
) -> Result<Serial<USART2>, InvalidConfig>where
P: Pins<USART2>,
fn serial_unchecked( self, config: impl Into<Config>, prec: Usart2, clocks: &CoreClocks, synchronous: bool ) -> Result<Serial<USART2>, InvalidConfig>
§fn usart(
self,
pins: impl Pins<USART>,
config: impl Into<Config>,
prec: Self::Rec,
clocks: &CoreClocks
) -> Result<Serial<USART>, InvalidConfig>
fn usart( self, pins: impl Pins<USART>, config: impl Into<Config>, prec: Self::Rec, clocks: &CoreClocks ) -> Result<Serial<USART>, InvalidConfig>
👎Deprecated since 0.7.0: Deprecated in favour of .serial(..)
§fn usart_unchecked(
self,
config: impl Into<Config>,
prec: Self::Rec,
clocks: &CoreClocks,
synchronous: bool
) -> Result<Serial<USART>, InvalidConfig>
fn usart_unchecked( self, config: impl Into<Config>, prec: Self::Rec, clocks: &CoreClocks, synchronous: bool ) -> Result<Serial<USART>, InvalidConfig>
👎Deprecated since 0.7.0: Deprecated in favour of .serial_unchecked(..)
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