[][src]Struct esp8266_hal::uart::UART0Serial

pub struct UART0Serial { /* fields omitted */ }

Serial port using UART0.

Implementations

impl UART0Serial[src]

#[must_use = "the interrupt handler must be kept in scope for the interrupt to be handled"]pub fn attach_interrupt<F: FnMut(&mut UART0Serial)>(
    self,
    f: F
) -> Pin<UartInterruptHandler<impl FnMut(&mut UART0Serial)>>
[src]

impl UART0Serial[src]

pub fn decompose(self) -> Result<(UART0, Gpio1<UART>, Gpio3<UART>), Void>[src]

Free up the UART device and return the pins used.

This operation blocks while there are still bytes in the transmit buffer.

Trait Implementations

impl Default<u8> for UART0Serial[src]

impl Read<u8> for UART0Serial[src]

type Error = Void

Read error

fn read(&mut self) -> Result<u8, Self::Error>[src]

Reads a single word from the serial interface.

impl Write<u8> for UART0Serial[src]

type Error = Void

Write error

impl Write for UART0Serial[src]

Auto Trait Implementations

impl Send for UART0Serial

impl !Sync for UART0Serial

impl Unpin for UART0Serial

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.

impl<S, Word> Write<Word> for S where
    S: Default<Word>,
    Word: Clone
[src]

type Error = <S as Write<Word>>::Error

The type of error that can occur when writing