[−][src]Struct edgebadge::sercom::UART2
UARTX represents the corresponding SERCOMX instance
configured to act in the role of a UART Master.
Objects of this type implement the HAL serial::Read
,
serial::Write
traits.
This type is generic over any valid pad mapping where there is a defined "receive pin out transmit pin out" implementation.
Methods
impl<RX, TX, RTS, CTS> UART2<RX, TX, RTS, CTS>
[src]
pub fn new<F, T>(
clock: &Sercom2CoreClock,
freq: F,
sercom: SERCOM2,
mclk: &mut MCLK,
padout: T
) -> UART2<RX, TX, RTS, CTS> where
F: Into<Hertz>,
T: Into<UART2Padout<RX, TX, RTS, CTS>>,
UART2Padout<RX, TX, RTS, CTS>: RxpoTxpo,
[src]
clock: &Sercom2CoreClock,
freq: F,
sercom: SERCOM2,
mclk: &mut MCLK,
padout: T
) -> UART2<RX, TX, RTS, CTS> where
F: Into<Hertz>,
T: Into<UART2Padout<RX, TX, RTS, CTS>>,
UART2Padout<RX, TX, RTS, CTS>: RxpoTxpo,
pub fn free(self) -> (UART2Padout<RX, TX, RTS, CTS>, SERCOM2)
[src]
Trait Implementations
impl<RX, TX, RTS, CTS> Default<u8> for UART2<RX, TX, RTS, CTS>
[src]
impl<RX, TX, RTS, CTS> Read<u8> for UART2<RX, TX, RTS, CTS>
[src]
type Error = ()
Read error
fn read(
&mut self
) -> Result<u8, Error<<UART2<RX, TX, RTS, CTS> as Read<u8>>::Error>>
[src]
&mut self
) -> Result<u8, Error<<UART2<RX, TX, RTS, CTS> as Read<u8>>::Error>>
impl<RX, TX, RTS, CTS> Write<u8> for UART2<RX, TX, RTS, CTS>
[src]
type Error = ()
Write error
fn write(
&mut self,
word: u8
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
impl<RX, TX, RTS, CTS> Write for UART2<RX, TX, RTS, CTS>
[src]
Auto Trait Implementations
impl<RX, TX, RTS, CTS> Send for UART2<RX, TX, RTS, CTS> where
CTS: Send,
RTS: Send,
RX: Send,
TX: Send,
CTS: Send,
RTS: Send,
RX: Send,
TX: Send,
impl<RX, TX, RTS, CTS> !Sync for UART2<RX, TX, RTS, CTS>
impl<RX, TX, RTS, CTS> Unpin for UART2<RX, TX, RTS, CTS> where
CTS: Unpin,
RTS: Unpin,
RX: Unpin,
TX: Unpin,
CTS: Unpin,
RTS: Unpin,
RX: Unpin,
TX: 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>,
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,