Type Alias atsame54n::adc0::ctrlb::W

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

Register CTRLB writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn leftadj(&mut self) -> LEFTADJ_W<'_, CTRLB_SPEC, 0>

Bit 0 - Left-Adjusted Result

source

pub fn freerun(&mut self) -> FREERUN_W<'_, CTRLB_SPEC, 1>

Bit 1 - Free Running Mode

source

pub fn corren(&mut self) -> CORREN_W<'_, CTRLB_SPEC, 2>

Bit 2 - Digital Correction Logic Enable

source

pub fn ressel(&mut self) -> RESSEL_W<'_, CTRLB_SPEC, 3>

Bits 3:4 - Conversion Result Resolution

source

pub fn winmode(&mut self) -> WINMODE_W<'_, CTRLB_SPEC, 8>

Bits 8:10 - Window Monitor Mode

source

pub fn winss(&mut self) -> WINSS_W<'_, CTRLB_SPEC, 11>

Bit 11 - Window Single Sample

source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual