#[repr(u8)]
pub enum GainMode {
TimesOne,
TimesTwo,
}
Expand description
Configuration bit for the gain selection mode of a channel.
If the channel is using an external reference, this bit is ignored and a gain of 1x is always used.
Variants
TimesOne
Gain is set to unity (1x).
TimesTwo
Gain is set to unity (2x).
Trait Implementations
sourceimpl TryFrom<u8> for GainMode
impl TryFrom<u8> for GainMode
type Error = TryFromPrimitiveError<GainMode>
type Error = TryFromPrimitiveError<GainMode>
The type returned in the event of a conversion error.
sourcefn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for GainMode
impl TryFromPrimitive for GainMode
type Primitive = u8
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for GainMode
impl Eq for GainMode
impl StructuralEq for GainMode
impl StructuralPartialEq for GainMode
Auto Trait Implementations
impl RefUnwindSafe for GainMode
impl Send for GainMode
impl Sync for GainMode
impl Unpin for GainMode
impl UnwindSafe for GainMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more