Type Alias atsame54n::adc0::avgctrl::W

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

Register AVGCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn samplenum(&mut self) -> SAMPLENUM_W<'_, AVGCTRL_SPEC, 0>

Bits 0:3 - Number of Samples to be Collected

source

pub fn adjres(&mut self) -> ADJRES_W<'_, AVGCTRL_SPEC, 4>

Bits 4:6 - Adjusting Result / Division Coefficient

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual