pub type W = W<VREG_SPEC>;
Expand description

Register VREG writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn en(&mut self) -> EN_W<'_, VREG_SPEC>

Bit 0 - enable
0=not enabled, 1=enabled

source

pub fn hiz(&mut self) -> HIZ_W<'_, VREG_SPEC>

Bit 1 - high impedance mode select
0=not in high impedance mode, 1=in high impedance mode

source

pub fn vsel(&mut self) -> VSEL_W<'_, VREG_SPEC>

Bits 4:7 - Output voltage select for on-chip voltage regulator.

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