[−][src]Struct k210_hal::serial::Serial
Serial abstraction
Methods
impl<UART, PINS> Serial<UART, PINS>
[src]
pub fn split(self) -> (Tx<UART, PINS>, Rx<UART, PINS>)
[src]
Splits the Serial
abstraction into a transmitter and a
receiver half
pub fn join(tx: Tx<UART, PINS>, _rx: Rx<UART, PINS>) -> Self
[src]
Forms Serial
abstraction from a transmitter and a
receiver half
pub fn free(self) -> (UART, PINS)
[src]
Releases the UART peripheral
impl<PINS> Serial<UARTHS, PINS>
[src]
pub fn listen(self) -> Self
[src]
Starts listening for an interrupt event
pub fn unlisten(self) -> Self
[src]
Stops listening for an interrupt event
impl<UART: UartX, PINS> Serial<UART, PINS>
[src]
pub fn listen(self) -> Self
[src]
Starts listening for an interrupt event
pub fn unlisten(self) -> Self
[src]
Stops listening for an interrupt event
Auto Trait Implementations
impl<UART, PINS> Send for Serial<UART, PINS> where
PINS: Send,
UART: Send,
PINS: Send,
UART: Send,
impl<UART, PINS> Sync for Serial<UART, PINS> where
PINS: Sync,
UART: Sync,
PINS: Sync,
UART: Sync,
impl<UART, PINS> Unpin for Serial<UART, PINS> where
PINS: Unpin,
UART: Unpin,
PINS: Unpin,
UART: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,