Home | History | Annotate | Download | only in liblight

Lines Matching refs:state

101 static int rgb_to_brightness(struct light_state_t const* state)
103 int color = state->color & 0x00ffffff;
110 struct light_state_t const* state)
113 int brightness = rgb_to_brightness(state);
122 static int set_light_locked(struct light_state_t const* state, int type)
129 switch (state->flashMode) {
132 onMS = state->flashOnMS;
133 offMS = state->flashOffMS;
142 colorRGB = state->color;
146 state->flashMode, colorRGB, onMS, offMS);
176 struct light_state_t const* state)
179 set_light_locked(state, 0);
186 struct light_state_t const* state)
189 set_light_locked(state, 1);
216 struct light_state_t const* state);