Enum d1_pac::tve_top::tve_dac_cfg1::REF1_SEL_A

source ·
#[repr(u8)]
pub enum REF1_SEL_A {
Show 16 variants _0_50_V = 0, _0_55_V = 1, _0_60_V = 2, _0_65_V = 3, _0_70_V = 4, _0_75_V = 5, _0_80_V = 6, _0_85_V = 7, _0_90_V = 8, _0_95_V = 9, _1_00_V = 10, _1_05_V = 11, _1_10_V = 12, _1_15_V = 13, _1_20_V = 14, _1_25_V = 15,
}
Expand description

(a_refslct1[3:0])

The reference voltage is used for hot plug detect function.

Value on reset: 10

Variants§

§

_0_50_V = 0

0: 0.50 V

§

_0_55_V = 1

1: 0.55 V

§

_0_60_V = 2

2: 0.60 V

§

_0_65_V = 3

3: 0.65 V

§

_0_70_V = 4

4: 0.70 V

§

_0_75_V = 5

5: 0.75 V

§

_0_80_V = 6

6: 0.80 V

§

_0_85_V = 7

7: 0.85 V

§

_0_90_V = 8

8: 0.90 V

§

_0_95_V = 9

9: 0.95 V

§

_1_00_V = 10

10: 1.00 V

§

_1_05_V = 11

11: 1.05 V

§

_1_10_V = 12

12: 1.10 V

§

_1_15_V = 13

13: 1.15 V

§

_1_20_V = 14

14: 1.20 V

§

_1_25_V = 15

15: 1.25 V

Trait Implementations§

source§

impl Clone for REF1_SEL_A

source§

fn clone(&self) -> REF1_SEL_A

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 REF1_SEL_A

source§

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

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

impl From<REF1_SEL_A> for u8

source§

fn from(variant: REF1_SEL_A) -> Self

Converts to this type from the input type.
source§

impl PartialEq for REF1_SEL_A

source§

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

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

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

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

impl Copy for REF1_SEL_A

source§

impl Eq for REF1_SEL_A

source§

impl StructuralPartialEq for REF1_SEL_A

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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>,

§

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

§

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.