#[repr(u8)]
pub enum PGA_GAIN_A {
    GAIN2,
    GAIN4,
    GAIN8,
    GAIN16,
    GAIN2_VM0,
    GAIN4_VM0,
    GAIN8_VM0,
    GAIN16_VM0,
    GAIN2_VM1,
    GAIN4_VM1,
    GAIN8_VM1,
    GAIN16_VM1,
}
Expand description

Gain in PGA mode

Value on reset: 0

Variants

GAIN2

0: Gain 2

GAIN4

1: Gain 4

GAIN8

2: Gain 8

GAIN16

4: Gain 16

GAIN2_VM0

8: Gain 2, feedback connected to VM0

GAIN4_VM0

9: Gain 4, feedback connected to VM0

GAIN8_VM0

10: Gain 8, feedback connected to VM0

GAIN16_VM0

11: Gain 16, feedback connected to VM0

GAIN2_VM1

12: Gain 2, feedback connected to VM1

GAIN4_VM1

13: Gain 4, feedback connected to VM1

GAIN8_VM1

14: Gain 8, feedback connected to VM1

GAIN16_VM1

15: Gain 16, feedback connected to VM1

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.