[−][src]Struct imxrt1062_hal::uart::Uninit
An uninitialized UART peripheral
Call init()
to initialize the peripheral
Methods
impl<M> Uninit<M> where
M: Module,
[src]
M: Module,
pub fn init<TX, RX>(
self,
tx: TX,
rx: RX,
baud: u32
) -> Result<UART<M>, TimingsError> where
TX: Pin<Direction = TX, Module = M>,
RX: Pin<Direction = RX, Module = M>,
[src]
self,
tx: TX,
rx: RX,
baud: u32
) -> Result<UART<M>, TimingsError> where
TX: Pin<Direction = TX, Module = M>,
RX: Pin<Direction = RX, Module = M>,
Initializes a UART on the tx
and rx
pins. Specify the initial
baud rate of the bus with baud
. Returns the configured UART
peripheral, or an error that indicates we could not configure the
baud rate.
Auto Trait Implementations
impl<M> Send for Uninit<M> where
M: Send,
<M as Module>::Reg: Send,
M: Send,
<M as Module>::Reg: Send,
impl<M> Sync for Uninit<M> where
M: Sync,
<M as Module>::Reg: Sync,
M: Sync,
<M as Module>::Reg: Sync,
impl<M> Unpin for Uninit<M> where
M: Unpin,
<M as Module>::Reg: Unpin,
M: Unpin,
<M as Module>::Reg: 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
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>,