Type Alias atsamd51p::adc0::sampctrl::W

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

Register SAMPCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn samplen(&mut self) -> SAMPLEN_W<'_, SAMPCTRL_SPEC, 0>

Bits 0:5 - Sampling Time Length

source

pub fn offcomp(&mut self) -> OFFCOMP_W<'_, SAMPCTRL_SPEC, 7>

Bit 7 - Comparator Offset Compensation Enable

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