[][src]Enum ltr_559::types::AlsGain

pub enum AlsGain {
    Gain1x,
    Gain2x,
    Gain4x,
    Gain8x,
    Gain48x,
    Gain96x,
}

ALS Gain

Variants

Gain1x

Gain 1x (1 lux to 64k lux default)

Gain2x

Gain 2x (0.5 lux to 32k lux)

Gain4x

Gain 4x (0.25 lux to 16k lux)

Gain8x

Gain 8x (0.125 lux to 8k lux)

Gain48x

Gain 48x (0.2 lux to 1.3k lux)

Gain96x

Gain 96x (0.1 lux to 600 lux)

Implementations

impl AlsGain[src]

pub fn value(&self) -> u8[src]

ALS Gain value

pub fn lux_compute_value(&self) -> f32[src]

ALS_GAIN value, used in lux computation

Trait Implementations

impl Clone for AlsGain[src]

impl Copy for AlsGain[src]

impl Debug for AlsGain[src]

impl Default for AlsGain[src]

Default for AlsGain

impl PartialEq<AlsGain> for AlsGain[src]

impl StructuralPartialEq for AlsGain[src]

Auto Trait Implementations

impl RefUnwindSafe for AlsGain

impl Send for AlsGain

impl Sync for AlsGain

impl Unpin for AlsGain

impl UnwindSafe for AlsGain

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.