Type Alias atsamd51p::tcc0::ccbuf_dith5_mode::W

source ·
pub type W = W<CCBUF_DITH5_MODE_SPEC>;
Expand description

Register CCBUF_DITH5_MODE[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn ditherbuf(&mut self) -> DITHERBUF_W<'_, CCBUF_DITH5_MODE_SPEC, 0>

Bits 0:4 - Dithering Buffer Cycle Number

source

pub fn ccbuf(&mut self) -> CCBUF_W<'_, CCBUF_DITH5_MODE_SPEC, 5>

Bits 5:23 - Channel Compare/Capture Buffer Value

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