[][src]Struct lpc81x_pac::usart0::cfg::W

pub struct W { /* fields omitted */ }

Value to write to the register

Methods

impl W[src]

pub fn reset_value() -> W[src]

Reset value of the register

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self[src]

Writes raw bits to the register

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

Bit 0 - USART Enable.

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

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

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

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

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

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

pub fn ctsen(&mut self) -> _CTSENW[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. See Section 16.7.3 for more information.

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

Bit 11 - Selects synchronous or asynchronous operation.

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

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

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

Bit 14 - Synchronous mode Master select.

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

Bit 15 - Selects data loopback mode.

Auto Trait Implementations

impl Send for W

impl Sync for W

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self