Enum embassy_stm32::dac::Mode
source · pub enum Mode {
NormalExternalBuffered,
NormalBothBuffered,
NormalExternalUnbuffered,
NormalInternalUnbuffered,
SampleHoldExternalBuffered,
SampleHoldBothBuffered,
SampleHoldBothUnbuffered,
SampleHoldInternalUnbuffered,
}
Expand description
Operating mode for DAC channel
Variants§
NormalExternalBuffered
Normal mode, channel is connected to external pin with buffer enabled.
NormalBothBuffered
Normal mode, channel is connected to external pin and internal peripherals with buffer enabled.
NormalExternalUnbuffered
Normal mode, channel is connected to external pin with buffer disabled.
NormalInternalUnbuffered
Normal mode, channel is connected to internal peripherals with buffer disabled.
SampleHoldExternalBuffered
Sample-and-hold mode, channel is connected to external pin with buffer enabled.
SampleHoldBothBuffered
Sample-and-hold mode, channel is connected to external pin and internal peripherals with buffer enabled.
SampleHoldBothUnbuffered
Sample-and-hold mode, channel is connected to external pin and internal peripherals with buffer disabled.
SampleHoldInternalUnbuffered
Sample-and-hold mode, channel is connected to internal peripherals with buffer disabled.
Trait Implementations§
source§impl PartialEq for Mode
impl PartialEq for Mode
impl Copy for Mode
impl Eq for Mode
impl StructuralEq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more