Struct ch32v3::ch32v30x::adc1::ctlr1::R

source ·
pub struct R(_);
Expand description

Register CTLR1 reader

Implementations§

source§

impl R

source

pub fn awdch(&self) -> AWDCH_R

Bits 0:4 - Analog watchdog channel select bits

source

pub fn eocie(&self) -> EOCIE_R

Bit 5 - Interrupt enable for EOC

source

pub fn awdie(&self) -> AWDIE_R

Bit 6 - Analog watchdog interrupt enable

source

pub fn jeocie(&self) -> JEOCIE_R

Bit 7 - Interrupt enable for injected channels

source

pub fn scan(&self) -> SCAN_R

Bit 8 - Scan mode enable

source

pub fn awdsgl(&self) -> AWDSGL_R

Bit 9 - Enable the watchdog on a single channel in scan mode

source

pub fn jauto(&self) -> JAUTO_R

Bit 10 - Automatic injected group conversion

source

pub fn discen(&self) -> DISCEN_R

Bit 11 - Discontinuous mode on regular channels

source

pub fn jdiscen(&self) -> JDISCEN_R

Bit 12 - Discontinuous mode on injected channels

source

pub fn discnum(&self) -> DISCNUM_R

Bits 13:15 - Discontinuous mode channel count

source

pub fn dualmod(&self) -> DUALMOD_R

Bits 16:19 - Dual mode selection

source

pub fn jawden(&self) -> JAWDEN_R

Bit 22 - Analog watchdog enable on injected channels

source

pub fn awden(&self) -> AWDEN_R

Bit 23 - Analog watchdog enable on regular channels

source

pub fn tkeyen(&self) -> TKEYEN_R

Bit 24 - TKEY enable, including TKEY_F and TKEY_V

source

pub fn tkitune(&self) -> TKITUNE_R

Bit 25 - TKEY_I enable

source

pub fn bufen(&self) -> BUFEN_R

Bit 26 - TKEY_BUF_Enable

source

pub fn pga(&self) -> PGA_R

Bits 27:28 - ADC_PGA

Methods from Deref<Target = R<CTLR1_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<CTLR1_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<CTLR1_SPEC>> for R

source§

fn from(reader: R<CTLR1_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.