Type Alias W

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

Register bit_period writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn transmit(&mut self) -> TRANSMIT_W<'_, BIT_PERIOD_SPEC>

Bits 0:15 - Period of each transmit bit

Add 1 to this value and divide by clock to get transmit baudrate.

Source

pub fn receive(&mut self) -> RECEIVE_W<'_, BIT_PERIOD_SPEC>

Bits 16:31 - Period of each receive bit

Add 1 to this value and divide by clock to get receive baudrate.

Source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual