Type Alias atsame54n::supc::vreg::W

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

Register VREG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

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

Bit 1 - Enable

source

pub fn sel(&mut self) -> SEL_W<'_, VREG_SPEC, 2>

Bit 2 - Voltage Regulator Selection

source

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

Bit 7 - Run in Backup mode

source

pub fn vsen(&mut self) -> VSEN_W<'_, VREG_SPEC, 16>

Bit 16 - Voltage Scaling Enable

source

pub fn vsper(&mut self) -> VSPER_W<'_, VREG_SPEC, 24>

Bits 24:26 - Voltage Scaling Period

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