[][src]Struct trellis_m4::sercom::v1::UART4

pub struct UART4<RX, TX, RTS, CTS> { /* fields omitted */ }

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.

Implementations

impl<RX, TX, RTS, CTS> UART4<RX, TX, RTS, CTS>[src]

pub fn new<F, T>(
    clock: &Sercom4CoreClock,
    freq: F,
    sercom: SERCOM4,
    mclk: &mut MCLK,
    padout: T
) -> UART4<RX, TX, RTS, CTS> where
    F: Into<Hertz>,
    T: Into<UART4Padout<RX, TX, RTS, CTS>>,
    UART4Padout<RX, TX, RTS, CTS>: RxpoTxpo
[src]

pub fn free(self) -> (UART4Padout<RX, TX, RTS, CTS>, SERCOM4)[src]

pub fn intenset<F>(&mut self, f: F) where
    F: FnOnce(&mut W<u8, Reg<u8, _INTENSET>>), 
[src]

pub fn intenclr<F>(&mut self, f: F) where
    F: FnOnce(&mut W<u8, Reg<u8, _INTENCLR>>), 
[src]

pub fn flags(&self) -> R<u16, Reg<u16, _STATUS>>[src]

Trait Implementations

impl<RX, TX, RTS, CTS> Default<u8> for UART4<RX, TX, RTS, CTS>[src]

impl<RX, TX, RTS, CTS> Read<u8> for UART4<RX, TX, RTS, CTS>[src]

type Error = ()

Read error

impl<RX, TX, RTS, CTS> Write for UART4<RX, TX, RTS, CTS>[src]

impl<RX, TX, RTS, CTS> Write<u8> for UART4<RX, TX, RTS, CTS>[src]

type Error = ()

Write error

Auto Trait Implementations

impl<RX, TX, RTS, CTS> Send for UART4<RX, TX, RTS, CTS> where
    CTS: Send,
    RTS: Send,
    RX: Send,
    TX: Send
[src]

impl<RX, TX, RTS, CTS> !Sync for UART4<RX, TX, RTS, CTS>[src]

impl<RX, TX, RTS, CTS> Unpin for UART4<RX, TX, RTS, CTS> where
    CTS: Unpin,
    RTS: Unpin,
    RX: Unpin,
    TX: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<S, Word> Write<Word> for S where
    Word: Clone,
    S: Default<Word>, 
[src]

type Error = <S as Write<Word>>::Error

The type of error that can occur when writing