[−][src]Struct esp8266_hal::uart::UART0Serial
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]
self,
f: F
) -> Pin<UartInterruptHandler<impl FnMut(&mut UART0Serial)>>
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
fn write(&mut self, word: u8) -> Result<(), Self::Error>
[src]
fn flush(&mut self) -> Result<(), Void>
[src]
impl Write for UART0Serial
[src]
Auto Trait Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, Word> Write<Word> for S where
S: Default<Word>,
Word: Clone,
[src]
S: Default<Word>,
Word: Clone,