Skip to main content

R

Type Alias R 

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

Register UART_CTL reader

Aliased Type§

pub struct R { /* private fields */ }

Implementations§

Source§

impl R

Source

pub fn div_en(&self) -> DivEnR

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

Source

pub fn xbreak(&self) -> XbreakR

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

Source

pub fn dlen(&self) -> DlenR

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

Source

pub fn eps(&self) -> EpsR

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

Source

pub fn pen(&self) -> PenR

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

Source

pub fn sps(&self) -> SpsR

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

Source

pub fn stp(&self) -> StpR

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