Type Alias atsame54n::adc0::refctrl::W

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

Register REFCTRL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn refsel(&mut self) -> REFSEL_W<'_, REFCTRL_SPEC, 0>

Bits 0:3 - Reference Selection

source

pub fn refcomp(&mut self) -> REFCOMP_W<'_, REFCTRL_SPEC, 7>

Bit 7 - Reference Buffer 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