Type Alias atsame54n::dac::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 diff(&mut self) -> DIFF_W<'_, CTRLB_SPEC, 0>

Bit 0 - Differential mode enable

source

pub fn refsel(&mut self) -> REFSEL_W<'_, CTRLB_SPEC, 1>

Bits 1:2 - Reference Selection for DAC0/1

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