#[repr(u8)]
pub enum DacMode {
    NormExternalOnlyBufEn,
    NormExternalAndPeriphBufEn,
    NormExternalOnlyBufDis,
    NormExternalAndPeriphBuDis,
    ShNormExternalOnlyBufEn,
    ShExternalAndPeriphBufEn,
    ShNormExternalOnlyBufDis,
    ShNormExternalAndPeriphBuDis,
}
Expand description

Sets the DAC_MCR register, Mode1 and Mode2 fields.

Variants

NormExternalOnlyBufEn

DAC channel is connected to external pin with Buffer enabled

NormExternalAndPeriphBufEn

DAC channel is connected to external pin and to on chip peripherals with buffer enabled

NormExternalOnlyBufDis

DAC channel is connected to external pin with buffer disabled

NormExternalAndPeriphBuDis

DAC channel is connected to on chip peripherals with Buffer disabled

ShNormExternalOnlyBufEn

DAC channel is connected to external pin with Buffer enabled

ShExternalAndPeriphBufEn

DAC channel is connected to external pin and to on chip peripherals with buffer enabled

ShNormExternalOnlyBufDis

DAC channel is connected to external pin with buffer disabled

ShNormExternalAndPeriphBuDis

DAC channel is connected to on chip peripherals with Buffer disabled

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.