[][src]Enum nrf52840_hal::saadc::Gain

#[repr(u8)]pub enum Gain {
    GAIN1_6,
    GAIN1_5,
    GAIN1_4,
    GAIN1_3,
    GAIN1_2,
    GAIN1,
    GAIN2,
    GAIN4,
}

Gain control

Value on reset: 0

Variants

GAIN1_6

0: 1/6

GAIN1_5

1: 1/5

GAIN1_4

2: 1/4

GAIN1_3

3: 1/3

GAIN1_2

4: 1/2

GAIN1

5: 1

GAIN2

6: 2

GAIN4

7: 4

Trait Implementations

impl Clone for GAIN_A[src]

impl Copy for GAIN_A[src]

impl Debug for GAIN_A[src]

impl PartialEq<GAIN_A> for GAIN_A[src]

impl StructuralPartialEq for GAIN_A[src]

Auto Trait Implementations

impl Send for GAIN_A

impl Sync for GAIN_A

impl Unpin for GAIN_A

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.