[−][src]Struct alt_stm32f30x_hal::pac::USART2
USART2
Methods
impl USART2
[src]
pub fn ptr() -> *const RegisterBlock
[src]
Returns a pointer to the register block
Trait Implementations
impl Send for USART2
[src]
impl Deref for USART2
[src]
type Target = RegisterBlock
The resulting type after dereferencing.
fn deref(&self) -> &RegisterBlock
[src]
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA2<PT, PM>, PA3<PT, PM>, PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA2<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA2<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA2<PT, PM>, PA15<PT, PM>, PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA2<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA2<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA2<PT, PM>, PB4<PT, PM>, PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA2<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA2<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA2<PT, PM>, PD6<PT, PM>, PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA2<PT, PM>, PD6<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA2<PT, PM>, PD6<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA2<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA14<PT, PM>, PA3<PT, PM>, PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA14<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA14<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA14<PT, PM>, PA15<PT, PM>, PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA14<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA14<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA14<PT, PM>, PB4<PT, PM>, PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA14<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA14<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PA14<PT, PM>, PD6<PT, PM>, PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PA14<PT, PM>, PD6<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PA14<PT, PM>, PD6<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PA14<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PB3<PT, PM>, PA3<PT, PM>, PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PB3<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PB3<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PB3<PT, PM>, PA15<PT, PM>, PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PB3<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PB3<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PB3<PT, PM>, PB4<PT, PM>, PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PB3<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PB3<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PB3<PT, PM>, PD6<PT, PM>, PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PB3<PT, PM>, PD6<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PB3<PT, PM>, PD6<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PB3<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PD5<PT, PM>, PA3<PT, PM>, PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PD5<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PD5<PT, PM>, PA3<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PA3<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PD5<PT, PM>, PA15<PT, PM>, PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PD5<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PD5<PT, PM>, PA15<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PA15<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PD5<PT, PM>, PB4<PT, PM>, PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
fn serial(
self,
pins: (PD5<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
[src]
self,
pins: (PD5<PT, PM>, PB4<PT, PM>),
baud_rate: Bps<u32>,
clocks: Clocks
) -> Serial<USART2, (PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PB4<PT, AltFn<AF7, PushPull, HighSpeed>>)>
impl<PT: PullType, PM: PinMode> SerialExt<USART2, PD5<PT, PM>, PD6<PT, PM>, PD5<PT, AltFn<AF7, PushPull, HighSpeed>>, PD6<PT, AltFn<AF7, PushPull, HighSpeed>>> for USART2
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self