Struct gd32vf103_pac::dac::ctl::R

source ·
pub struct R(_);
Expand description

Register CTL reader

Implementations§

source§

impl R

source

pub fn den0(&self) -> DEN0_R

Bit 0 - DAC0 enable

source

pub fn dboff0(&self) -> DBOFF0_R

Bit 1 - DAC0 output buffer turn off

source

pub fn dten0(&self) -> DTEN0_R

Bit 2 - DAC0 trigger enable

source

pub fn dtsel0(&self) -> DTSEL0_R

Bits 3:5 - DAC0 trigger selection

source

pub fn dwm0(&self) -> DWM0_R

Bits 6:7 - DAC0 noise wave mode

source

pub fn dwbw0(&self) -> DWBW0_R

Bits 8:11 - DAC0 noise wave bit width

source

pub fn ddmaen0(&self) -> DDMAEN0_R

Bit 12 - DAC0 DMA enable

source

pub fn den1(&self) -> DEN1_R

Bit 16 - DAC1 enable

source

pub fn dboff1(&self) -> DBOFF1_R

Bit 17 - DAC1 output buffer turn off

source

pub fn dten1(&self) -> DTEN1_R

Bit 18 - DAC1 trigger enable

source

pub fn dtsel1(&self) -> DTSEL1_R

Bits 19:21 - DAC1 trigger selection

source

pub fn dwm1(&self) -> DWM1_R

Bits 22:23 - DAC1 noise wave mode

source

pub fn dwbw1(&self) -> DWBW1_R

Bits 24:27 - DAC1 noise wave bit width

source

pub fn ddmaen1(&self) -> DDMAEN1_R

Bit 28 - DAC1 DMA enable

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

source

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

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<CTL_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl From<R<CTL_SPEC>> for R

source§

fn from(reader: R<CTL_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,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

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.
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.
source§

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

Performs the conversion.