Lines Matching defs:led
106 static int write_leds(struct an30259a_pr_control *led)
120 err = ioctl(fd, AN30259A_PR_SET_LED, led);
137 struct an30259a_pr_control led;
139 memset(&led, 0, sizeof(led));
143 led.state = LED_LIGHT_OFF;
147 led.state = LED_LIGHT_SLOPE;
148 led.color = state->color & 0x00ffffff;
150 if (led.color == 0x00ffffff)
151 led.color = 0x80ff80;
153 led.time_slope_up_1 = (SLOPE_UP_1 * state->flashOnMS) / 1000;
154 led.time_slope_up_2 = (SLOPE_UP_2 * state->flashOnMS) / 1000;
155 led.time_slope_down_1 = (SLOPE_DOWN_1 * state->flashOnMS) / 1000;
156 led.time_slope_down_2 = (SLOPE_DOWN_2 * state->flashOnMS) / 1000;
157 led.mid_brightness = MID_BRIGHTNESS;
158 led.time_off = state->flashOffMS;
164 return write_leds(&led);