Struct stm32h7xx_hal::dac::C1

source ·
pub struct C1<DAC, ED> { /* private fields */ }

Implementations§

source§

impl C1<DAC, Disabled>

source§

impl<ED> C1<DAC, ED>

source

pub fn calibrate_buffer<T>(self, delay: &mut T) -> C1<DAC1, Disabled>
where T: DelayUs<u32>,

Calibrate the DAC output buffer by performing a “User trimming” operation. It is useful when the VDDA/VREF+ voltage or temperature differ from the factory trimming conditions.

The calibration is only valid when the DAC channel is operating with the buffer enabled. If applied in other modes it has no effect.

After the calibration operation, the DAC channel is disabled.

source

pub fn disable(self) -> C1<DAC1, Disabled>

Disable the DAC channel

Trait Implementations§

source§

impl<ED> DacOut<u16> for C1<DAC, ED>

DacOut implementation available in any Enabled/Disabled state

source§

fn set_value(&mut self, val: u16)

source§

fn get_value(&mut self) -> u16

Auto Trait Implementations§

§

impl<DAC, ED> Freeze for C1<DAC, ED>

§

impl<DAC, ED> RefUnwindSafe for C1<DAC, ED>
where DAC: RefUnwindSafe, ED: RefUnwindSafe,

§

impl<DAC, ED> Send for C1<DAC, ED>
where DAC: Send, ED: Send,

§

impl<DAC, ED> Sync for C1<DAC, ED>
where DAC: Sync, ED: Sync,

§

impl<DAC, ED> Unpin for C1<DAC, ED>
where DAC: Unpin, ED: Unpin,

§

impl<DAC, ED> UnwindSafe for C1<DAC, ED>
where DAC: UnwindSafe, ED: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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 T
where 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.