[−][src]Struct lpc55_hal::drivers::serial::Serial
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]
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
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]
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
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]
TX: PinId,
RX: PinId,
USART: Usart,
PINS: UsartPins<TX, RX, USART>,
Auto Trait Implementations
impl<TX, RX, USART, PINS> Send for Serial<TX, RX, USART, PINS> where
PINS: Send,
RX: Send,
TX: Send,
USART: Send,
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,
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,
PINS: Unpin,
RX: Unpin,
TX: Unpin,
USART: Unpin,
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> Same<T> for T
[src]
type Output = T
Should always be Self
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>,