Type Alias atsame54n::dac::dacctrl::W

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

Register DACCTRL[%s] writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 0 - Left Adjusted Data

source

pub fn enable(&mut self) -> ENABLE_W<'_, DACCTRL_SPEC, 1>

Bit 1 - Enable DAC0

source

pub fn cctrl(&mut self) -> CCTRL_W<'_, DACCTRL_SPEC, 2>

Bits 2:3 - Current Control

source

pub fn fext(&mut self) -> FEXT_W<'_, DACCTRL_SPEC, 5>

Bit 5 - Standalone Filter

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, DACCTRL_SPEC, 6>

Bit 6 - Run in Standby

source

pub fn dither(&mut self) -> DITHER_W<'_, DACCTRL_SPEC, 7>

Bit 7 - Dithering Mode

source

pub fn refresh(&mut self) -> REFRESH_W<'_, DACCTRL_SPEC, 8>

Bits 8:11 - Refresh period

source

pub fn osr(&mut self) -> OSR_W<'_, DACCTRL_SPEC, 13>

Bits 13:15 - Sampling Rate

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