Type Alias atsamd51p::supc::bod33::W

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

Register BOD33 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 1 - Enable

source

pub fn action(&mut self) -> ACTION_W<'_, BOD33_SPEC, 2>

Bits 2:3 - Action when Threshold Crossed

source

pub fn stdbycfg(&mut self) -> STDBYCFG_W<'_, BOD33_SPEC, 4>

Bit 4 - Configuration in Standby mode

source

pub fn runstdby(&mut self) -> RUNSTDBY_W<'_, BOD33_SPEC, 5>

Bit 5 - Run in Standby mode

source

pub fn runhib(&mut self) -> RUNHIB_W<'_, BOD33_SPEC, 6>

Bit 6 - Run in Hibernate mode

source

pub fn runbkup(&mut self) -> RUNBKUP_W<'_, BOD33_SPEC, 7>

Bit 7 - Run in Backup mode

source

pub fn hyst(&mut self) -> HYST_W<'_, BOD33_SPEC, 8>

Bits 8:11 - Hysteresis value

source

pub fn psel(&mut self) -> PSEL_W<'_, BOD33_SPEC, 12>

Bits 12:14 - Prescaler Select

source

pub fn level(&mut self) -> LEVEL_W<'_, BOD33_SPEC, 16>

Bits 16:23 - Threshold Level for VDD

source

pub fn vbatlevel(&mut self) -> VBATLEVEL_W<'_, BOD33_SPEC, 24>

Bits 24:31 - Threshold Level in battery backup sleep mode for VBAT

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