#[repr(C)]
pub struct RegisterBlock {
Show 13 fields pub ctl: CTL, pub swt: SWT, pub dac0_r12dh: DAC0_R12DH, pub dac0_l12dh: DAC0_L12DH, pub dac0_r8dh: DAC0_R8DH, pub dac1_r12dh: DAC1_R12DH, pub dac1_l12dh: DAC1_L12DH, pub dac1_r8dh: DAC1_R8DH, pub dacc_r12dh: DACC_R12DH, pub dacc_l12dh: DACC_L12DH, pub dacc_r8dh: DACC_R8DH, pub dac0_do: DAC0_DO, pub dac1_do: DAC1_DO,
}
Expand description

Register block

Fields§

§ctl: CTL

0x00 - control register

§swt: SWT

0x04 - software trigger register

§dac0_r12dh: DAC0_R12DH

0x08 - DAC0 12-bit right-aligned data holding register

§dac0_l12dh: DAC0_L12DH

0x0c - DAC0 12-bit left-aligned data holding register

§dac0_r8dh: DAC0_R8DH

0x10 - DAC0 8-bit right aligned data holding register

§dac1_r12dh: DAC1_R12DH

0x14 - DAC1 12-bit right-aligned data holding register

§dac1_l12dh: DAC1_L12DH

0x18 - DAC1 12-bit left aligned data holding register

§dac1_r8dh: DAC1_R8DH

0x1c - DAC1 8-bit right aligned data holding register

§dacc_r12dh: DACC_R12DH

0x20 - DAC concurrent mode 12-bit right-aligned data holding register

§dacc_l12dh: DACC_L12DH

0x24 - DAC concurrent mode 12-bit left aligned data holding register

§dacc_r8dh: DACC_R8DH

0x28 - DAC concurrent mode 8-bit right aligned data holding register

§dac0_do: DAC0_DO

0x2c - DAC0 data output register

§dac1_do: DAC1_DO

0x30 - DAC1 data output register

Auto Trait Implementations§

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.