Type Alias W

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

Register period_stop writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn phase(&mut self, n: u8) -> PHASE_W<'_, PERIOD_STOP_SPEC>

Length of stop condition phase (0-3)

NOTE: n is number of field in register. n == 0 corresponds to phase0 field

Source

pub fn phase0(&mut self) -> PHASE_W<'_, PERIOD_STOP_SPEC>

Bits 0:7 - Length of stop condition phase 0

Source

pub fn phase1(&mut self) -> PHASE_W<'_, PERIOD_STOP_SPEC>

Bits 8:15 - Length of stop condition phase 1

Source

pub fn phase2(&mut self) -> PHASE_W<'_, PERIOD_STOP_SPEC>

Bits 16:23 - Length of stop condition phase 2

Source

pub fn phase3(&mut self) -> PHASE_W<'_, PERIOD_STOP_SPEC>

Bits 24:31 - Length of stop condition phase 3

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