pub struct Serial<USART, Config> { /* private fields */ }
Expand description
Serial abstraction
Implementations§
Source§impl Serial<USART1, FullConfig>
impl Serial<USART1, FullConfig>
pub fn usart1<PINS: Pins<USART1>>( usart: USART1, pins: PINS, config: FullConfig, rcc: &mut Rcc, ) -> Result<Self, InvalidConfig>
Sourcepub fn is_pending(&mut self, event: Event) -> bool
pub fn is_pending(&mut self, event: Event) -> bool
Check if interrupt event is pending
Source§impl Serial<USART2, FullConfig>
impl Serial<USART2, FullConfig>
pub fn usart2<PINS: Pins<USART2>>( usart: USART2, pins: PINS, config: FullConfig, rcc: &mut Rcc, ) -> Result<Self, InvalidConfig>
Sourcepub fn is_pending(&mut self, event: Event) -> bool
pub fn is_pending(&mut self, event: Event) -> bool
Check if interrupt event is pending
Source§impl Serial<USART3, BasicConfig>
impl Serial<USART3, BasicConfig>
pub fn usart3<PINS: Pins<USART3>>( usart: USART3, pins: PINS, config: BasicConfig, rcc: &mut Rcc, ) -> Result<Self, InvalidConfig>
Sourcepub fn is_pending(&mut self, event: Event) -> bool
pub fn is_pending(&mut self, event: Event) -> bool
Check if interrupt event is pending
Source§impl Serial<USART4, BasicConfig>
impl Serial<USART4, BasicConfig>
pub fn usart4<PINS: Pins<USART4>>( usart: USART4, pins: PINS, config: BasicConfig, rcc: &mut Rcc, ) -> Result<Self, InvalidConfig>
Sourcepub fn is_pending(&mut self, event: Event) -> bool
pub fn is_pending(&mut self, event: Event) -> bool
Check if interrupt event is pending
Source§impl Serial<LPUART, BasicConfig>
impl Serial<LPUART, BasicConfig>
pub fn lpuart<PINS: Pins<LPUART>>( usart: LPUART, pins: PINS, config: BasicConfig, rcc: &mut Rcc, ) -> Result<Self, InvalidConfig>
Sourcepub fn is_pending(&mut self, event: Event) -> bool
pub fn is_pending(&mut self, event: Event) -> bool
Check if interrupt event is pending
Trait Implementations§
Source§impl<USART, Config> Write for Serial<USART, Config>
impl<USART, Config> Write for Serial<USART, Config>
Auto Trait Implementations§
impl<USART, Config> Freeze for Serial<USART, Config>where
USART: Freeze,
impl<USART, Config> RefUnwindSafe for Serial<USART, Config>where
USART: RefUnwindSafe,
Config: RefUnwindSafe,
impl<USART, Config> Send for Serial<USART, Config>
impl<USART, Config> Sync for Serial<USART, Config>
impl<USART, Config> Unpin for Serial<USART, Config>
impl<USART, Config> UnwindSafe for Serial<USART, Config>where
USART: UnwindSafe,
Config: UnwindSafe,
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