Struct lpc55_pac::usart0::cfg::R[][src]

pub struct R(_);

Register CFG reader

Implementations

impl R[src]

pub fn enable(&self) -> ENABLE_R[src]

Bit 0 - USART Enable.

pub fn datalen(&self) -> DATALEN_R[src]

Bits 2:3 - Selects the data size for the USART.

pub fn paritysel(&self) -> PARITYSEL_R[src]

Bits 4:5 - Selects what type of parity is used by the USART.

pub fn stoplen(&self) -> STOPLEN_R[src]

Bit 6 - Number of stop bits appended to transmitted data. Only a single stop bit is required for received data.

pub fn mode32k(&self) -> MODE32K_R[src]

Bit 7 - Selects standard or 32 kHz clocking mode.

pub fn linmode(&self) -> LINMODE_R[src]

Bit 8 - LIN break mode enable.

pub fn ctsen(&self) -> CTSEN_R[src]

Bit 9 - CTS Enable. Determines whether CTS is used for flow control. CTS can be from the input pin, or from the USART’s own RTS if loopback mode is enabled.

pub fn syncen(&self) -> SYNCEN_R[src]

Bit 11 - Selects synchronous or asynchronous operation.

pub fn clkpol(&self) -> CLKPOL_R[src]

Bit 12 - Selects the clock polarity and sampling edge of received data in synchronous mode.

pub fn syncmst(&self) -> SYNCMST_R[src]

Bit 14 - Synchronous mode Master select.

pub fn loop_(&self) -> LOOP_R[src]

Bit 15 - Selects data loopback mode.

pub fn oeta(&self) -> OETA_R[src]

Bit 18 - Output Enable Turnaround time enable for RS-485 operation.

pub fn autoaddr(&self) -> AUTOADDR_R[src]

Bit 19 - Automatic Address matching enable.

pub fn oesel(&self) -> OESEL_R[src]

Bit 20 - Output Enable Select.

pub fn oepol(&self) -> OEPOL_R[src]

Bit 21 - Output Enable Polarity.

pub fn rxpol(&self) -> RXPOL_R[src]

Bit 22 - Receive data polarity.

pub fn txpol(&self) -> TXPOL_R[src]

Bit 23 - Transmit data polarity.

Methods from Deref<Target = R<CFG_SPEC>>

pub fn bits(&self) -> REG::Ux[src]

Reads raw bits from register.

Trait Implementations

impl Deref for R[src]

type Target = R<CFG_SPEC>

The resulting type after dereferencing.

impl From<R<CFG_SPEC>> for R[src]

Auto Trait Implementations

impl Send for R

impl Sync for R

impl Unpin for R

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, 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.