Type Alias gd32e1::gd32e103::adc1::ovsampctl::R

source ·
pub type R = R<OvsampctlSpec>;
Expand description

Register OVSAMPCTL reader

Aliased Type§

struct R { /* private fields */ }

Implementations§

source§

impl R

source

pub fn ovsen(&self) -> OvsenR

Bit 0 - Oversampling Enable

source

pub fn ovsr(&self) -> OvsrR

Bits 2:4 - Oversampling ratio

source

pub fn ovss(&self) -> OvssR

Bits 5:8 - Oversampling shift

source

pub fn tovs(&self) -> TovsR

Bit 9 - Triggered Oversampling

source

pub fn dres(&self) -> DresR

Bits 12:13 - ADC resolution