[][src]Struct k210_hal::serial::Serial

pub struct Serial<UART, PINS> { /* fields omitted */ }

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

impl<UART, PINS> Sync for Serial<UART, PINS> where
    PINS: Sync,
    UART: Sync

impl<UART, PINS> Unpin for Serial<UART, PINS> where
    PINS: Unpin,
    UART: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.