Lines Matching refs:state
116 is_lit(struct light_state_t const* state)
118 return state->color & 0x00ffffff;
122 rgb_to_brightness(struct light_state_t const* state)
124 int color = state->color & 0x00ffffff;
131 struct light_state_t const* state)
134 int brightness = rgb_to_brightness(state);
143 struct light_state_t const* state)
151 switch (state->flashMode) {
153 onMS = state->flashOnMS;
154 offMS = state->flashOffMS;
163 colorRGB = state->color;
167 state->flashMode, colorRGB, onMS, offMS);
241 struct light_state_t const* state)
244 g_notification = *state;
252 struct light_state_t const* state)
255 if (state->flashMode == LIGHT_FLASH_HARDWARE) {
256 g_attention = state->flashOnMS;
257 } else if (state->flashMode == LIGHT_FLASH_NONE) {
288 struct light_state_t const* state);