Channel1

Struct Channel1 

Source
pub struct Channel1<ED> { /* private fields */ }

Implementations§

Source§

impl Channel1<Disabled>

Source§

impl<ED> Channel1<ED>

Source

pub fn calibrate_buffer<T>(self, delay: &mut T) -> Channel1<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) -> Channel1<Disabled>

Disable the DAC channel

Source§

impl Channel1<WaveGenerator>

Wave generator state implementation

Source

pub fn trigger(&mut self)

Trait Implementations§

Source§

impl<ED> DacOut<u16> for Channel1<ED>

DacOut implementation available in any Enabled/Disabled state

Source§

fn set_value(&mut self, val: u16)

Source§

fn get_value(&mut self) -> u16

Source§

impl<ED> NegativeInput<COMP1> for &Channel1<ED>

Source§

fn setup(&self, comp: &COMP1)

Source§

impl<ED> NegativeInput<COMP2> for &Channel1<ED>

Source§

fn setup(&self, comp: &COMP2)

Auto Trait Implementations§

§

impl<ED> Freeze for Channel1<ED>

§

impl<ED> RefUnwindSafe for Channel1<ED>
where ED: RefUnwindSafe,

§

impl<ED> Send for Channel1<ED>
where ED: Send,

§

impl<ED> Sync for Channel1<ED>
where ED: Sync,

§

impl<ED> Unpin for Channel1<ED>
where ED: Unpin,

§

impl<ED> UnwindSafe for Channel1<ED>
where 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>,

Source§

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>,

Source§

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.