Type Alias W

Source
pub type W = W<ACOMP0_CTRL_SPEC>;
Expand description

Register acomp0_ctrl writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

Source§

impl W

Source

pub fn acomp0_en(&mut self) -> ACOMP0_EN_W<'_, ACOMP0_CTRL_SPEC>

Bit 0

Source

pub fn acomp0_hyst_seln(&mut self) -> ACOMP0_HYST_SELN_W<'_, ACOMP0_CTRL_SPEC>

Bits 4:6

Source

pub fn acomp0_hyst_selp(&mut self) -> ACOMP0_HYST_SELP_W<'_, ACOMP0_CTRL_SPEC>

Bits 7:9

Source

pub fn acomp0_bias_prog(&mut self) -> ACOMP0_BIAS_PROG_W<'_, ACOMP0_CTRL_SPEC>

Bits 10:11

Source

pub fn acomp0_level_sel(&mut self) -> ACOMP0_LEVEL_SEL_W<'_, ACOMP0_CTRL_SPEC>

Bits 12:17

Source

pub fn acomp0_neg_sel(&mut self) -> ACOMP0_NEG_SEL_W<'_, ACOMP0_CTRL_SPEC>

Bits 18:21

Source

pub fn acomp0_pos_sel(&mut self) -> ACOMP0_POS_SEL_W<'_, ACOMP0_CTRL_SPEC>

Bits 22:25

Source

pub fn acomp0_muxen(&mut self) -> ACOMP0_MUXEN_W<'_, ACOMP0_CTRL_SPEC>

Bit 26

Source

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

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual