Trait esp8266_hal::uart::UART1Ext
source · [−]pub trait UART1Ext {
fn serial(self, txd: Gpio2<UART>) -> UART1Serial;
}
Expand description
Extension trait for UART1
for easily creating UART1Serial
instances.
Note that UART1
is write-only.
Required Methods
fn serial(self, txd: Gpio2<UART>) -> UART1Serial
Implementations on Foreign Types
sourceimpl UART1Ext for UART1
impl UART1Ext for UART1
sourcefn serial(self, txd: Gpio2<UART>) -> UART1Serial
fn serial(self, txd: Gpio2<UART>) -> UART1Serial
Create a new write-only UART1Serial
instance using the provided pin.