Skip to main content

W

Type Alias W 

Source
pub type W = W<UartCtlSpec>;
Expand description

Register UART_CTL writer

Aliased Type§

pub struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn div_en(&mut self) -> DivEnW<'_, UartCtlSpec>

Bit 0 - Divider enable: 0=div accessible when not busy; 1=div accessible anytime

Source

pub fn xbreak(&mut self) -> XbreakW<'_, UartCtlSpec>

Bit 1 - Break control: 0=normal; 1=force TX to space

Source

pub fn dlen(&mut self) -> DlenW<'_, UartCtlSpec>

Bits 2:3 - Data length: 00=5bit; 01=6bit; 10=7bit; 11=8bit

Source

pub fn eps(&mut self) -> EpsW<'_, UartCtlSpec>

Bit 4 - Parity select: 0=odd; 1=even

Source

pub fn pen(&mut self) -> PenW<'_, UartCtlSpec>

Bit 5 - Parity enable: 0=disabled; 1=enabled

Source

pub fn sps(&mut self) -> SpsW<'_, UartCtlSpec>

Bit 6 - Sticky parity: 0=disabled; 1=enabled

Source

pub fn stp(&mut self) -> StpW<'_, UartCtlSpec>

Bit 7 - Stop bits: 0=1bit; 1=1.5/2bit