Struct lpc55_hal::drivers::serial::Serial[][src]

pub struct Serial<TX, RX, USART, PINS> where
    TX: PinId,
    RX: PinId,
    USART: Usart,
    PINS: UsartPins<TX, RX, USART>, 
{ /* fields omitted */ }

USART peripheral operating as serial

Implementations

impl<TX, RX, USART, PINS> Serial<TX, RX, USART, PINS> where
    TX: PinId,
    RX: PinId,
    USART: Usart,
    PINS: UsartPins<TX, RX, USART>, 
[src]

pub fn new(usart: USART, pins: PINS, config: Config) -> Self[src]

pub fn split(self) -> (Tx<USART>, Rx<USART>)[src]

pub fn release(self) -> (USART, PINS)[src]

Trait Implementations

impl<TX, RX, USART, PINS> Read<u8> for Serial<TX, RX, USART, PINS> where
    TX: PinId,
    RX: PinId,
    USART: Usart,
    PINS: UsartPins<TX, RX, USART>, 
[src]

type Error = Error

Read error

impl<TX, RX, USART, PINS> Write<u8> for Serial<TX, RX, USART, PINS> where
    TX: PinId,
    RX: PinId,
    USART: Usart,
    PINS: UsartPins<TX, RX, USART>, 
[src]

type Error = Error

Write error

Auto Trait Implementations

impl<TX, RX, USART, PINS> Send for Serial<TX, RX, USART, PINS> where
    PINS: Send,
    RX: Send,
    TX: Send,
    USART: Send

impl<TX, RX, USART, PINS> Sync for Serial<TX, RX, USART, PINS> where
    PINS: Sync,
    RX: Sync,
    TX: Sync,
    USART: Sync

impl<TX, RX, USART, PINS> Unpin for Serial<TX, RX, USART, PINS> where
    PINS: Unpin,
    RX: Unpin,
    TX: Unpin,
    USART: 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> Same<T> for T

type Output = T

Should always be Self

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.