#[repr(u8)]
pub enum ModePin { NormBuf = 0, NormChipBuf = 1, NormNoBuf = 2, SampleHoldBuf = 4, SampleHoldChipBuf = 5, SampleHoldNoBuf = 6, }
Expand description

ADC modes that use the A10 output pin

The DAC is connected to the A10 output pin in all these modes. Some modes may also connect to the chip peripherals in addition to the A10 output pin.

The output buffer can be enabled to allow a high drive capability.

Variants§

§

NormBuf = 0

Normal mode with the buffer enabled

§

NormChipBuf = 1

Normal mode with the buffer enabled and output to chip peripherals

§

NormNoBuf = 2

Normal mode with the buffer disabled

§

SampleHoldBuf = 4

Sample and hold with the buffer enabled

§

SampleHoldChipBuf = 5

Sample and hold with the buffer enabled and output to chip peripherals

§

SampleHoldNoBuf = 6

Sample and hold with the buffer disabled

Trait Implementations§

source§

impl Clone for ModePin

source§

fn clone(&self) -> ModePin

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ModePin

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<ModePin> for MODE1_A

source§

fn from(mp: ModePin) -> Self

Converts to this type from the input type.
source§

impl PartialEq for ModePin

source§

fn eq(&self, other: &ModePin) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ModePin

source§

impl Eq for ModePin

source§

impl StructuralEq for ModePin

source§

impl StructuralPartialEq for ModePin

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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