Struct stm32_hal2::dac::Dac[][src]

pub struct Dac<R> { /* fields omitted */ }
Expand description

Represents a Digital to Analog Converter (DAC) peripheral.

Implementations

Create a new DAC instance.

Enable the DAC.

Disable the DAC

Set the DAC value as an integer.

Set the DAC voltage. v is in Volts.

Select and activate a trigger. See f303 Reference manual, section 16.5.4.

Independent trigger with single LFSR generation See f303 Reference Manual section 16.5.2

Independent trigger with single triangle generation See f303 Reference Manual section 16.5.2

Enable the DMA Underrun interrupt - the only interrupt available.

Clear the DMA Underrun interrupt - the only interrupt available.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.