Type Alias atsamd51p::supc::vref::W

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

Register VREF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn tsen(&mut self) -> TSEN_W<'_, VREF_SPEC, 1>

Bit 1 - Temperature Sensor Output Enable

source

pub fn vrefoe(&mut self) -> VREFOE_W<'_, VREF_SPEC, 2>

Bit 2 - Voltage Reference Output Enable

source

pub fn tssel(&mut self) -> TSSEL_W<'_, VREF_SPEC, 3>

Bit 3 - Temperature Sensor Selection

source

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

Bit 6 - Run during Standby

source

pub fn ondemand(&mut self) -> ONDEMAND_W<'_, VREF_SPEC, 7>

Bit 7 - On Demand Contrl

source

pub fn sel(&mut self) -> SEL_W<'_, VREF_SPEC, 16>

Bits 16:19 - Voltage Reference Selection

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