pub struct Serial<UART, PINS> { /* private fields */ }Expand description
Serial abstraction
Implementations§
Source§impl<UART, PINS> Serial<UART, PINS>
impl<UART, PINS> Serial<UART, PINS>
Sourcepub fn split(self) -> (Tx<UART, PINS>, Rx<UART, PINS>)
pub fn split(self) -> (Tx<UART, PINS>, Rx<UART, PINS>)
Splits the Serial abstraction into a transmitter and a
receiver half
Sourcepub fn join(tx: Tx<UART, PINS>, _rx: Rx<UART, PINS>) -> Self
pub fn join(tx: Tx<UART, PINS>, _rx: Rx<UART, PINS>) -> Self
Forms Serial abstraction from a transmitter and a
receiver half
Sourcepub fn free(self) -> (UART, PINS)
pub fn free(self) -> (UART, PINS)
Releases the UART peripheral
Auto Trait Implementations§
impl<UART, PINS> Freeze for Serial<UART, PINS>
impl<UART, PINS> RefUnwindSafe for Serial<UART, PINS>where
UART: RefUnwindSafe,
PINS: RefUnwindSafe,
impl<UART, PINS> Send for Serial<UART, PINS>
impl<UART, PINS> Sync for Serial<UART, PINS>
impl<UART, PINS> Unpin for Serial<UART, PINS>
impl<UART, PINS> UnsafeUnpin for Serial<UART, PINS>where
UART: UnsafeUnpin,
PINS: UnsafeUnpin,
impl<UART, PINS> UnwindSafe for Serial<UART, PINS>where
UART: UnwindSafe,
PINS: 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