[][src]Struct joycon_rs::joycon::lights::home_button::LightEmittingPhase

pub struct LightEmittingPhase {
    pub led_intensity: u4,
    pub fading_transition_duration: u4,
    pub led_duration: u4,
}

Element of HOME light emitting pattern. The LED Duration Multiplier and the Fading Multiplier use the same algorithm: Global Mini Cycle Duration ms * Multiplier value.

Example: GMCD is set to xF = 175ms and LED Duration Multiplier is set to x4. The Duration that the LED will stay on it's configured intensity is then 175 * 4 = 700ms.

Fields

led_intensity: u4

LED intensity. x0 -> 0%, xF -> 100%

fading_transition_duration: u4

Fading Transition Duration. Value is a Multiplier of Global Mini Cycle Duration.

led_duration: u4

LED Duration Multiplier

Trait Implementations

impl Clone for LightEmittingPhase[src]

impl Debug for LightEmittingPhase[src]

impl Eq for LightEmittingPhase[src]

impl Hash for LightEmittingPhase[src]

impl PartialEq<LightEmittingPhase> for LightEmittingPhase[src]

impl StructuralEq for LightEmittingPhase[src]

impl StructuralPartialEq for LightEmittingPhase[src]

Auto Trait Implementations

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.