Type Alias gd32f1::gd32f130::opa_ivref::ivref_ctl::W

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

Register IVREF_CTL writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn csdt(&mut self) -> CsdtW<'_, IvrefCtlSpec>

Bits 0:5 - Current step data

source

pub fn scmod(&mut self) -> ScmodW<'_, IvrefCtlSpec>

Bit 7 - Sink current mode

source

pub fn cpt(&mut self) -> CptW<'_, IvrefCtlSpec>

Bits 8:12 - Current precision trim

source

pub fn ssel(&mut self) -> SselW<'_, IvrefCtlSpec>

Bit 14 - Step selection

source

pub fn cren(&mut self) -> CrenW<'_, IvrefCtlSpec>

Bit 15 - Current reference enable

source

pub fn vpt(&mut self) -> VptW<'_, IvrefCtlSpec>

Bits 24:28 - Voltage precision tirm

source

pub fn decap(&mut self) -> DecapW<'_, IvrefCtlSpec>

Bit 30 - Disconnect external capacitor

source

pub fn vren(&mut self) -> VrenW<'_, IvrefCtlSpec>

Bit 31 - Voltage reference enable