Lines Matching refs:led
25 const struct device * *dev, uint32_t *led) in parse_common_args() argument
36 *led = strtoul(argv[arg_idx_led], &end_ptr, 0); in parse_common_args()
49 uint32_t led; in cmd_off() local
52 err = parse_common_args(sh, argv, &dev, &led); in cmd_off()
57 shell_print(sh, "%s: turning off LED %d", dev->name, led); in cmd_off()
59 err = led_off(dev, led); in cmd_off()
70 uint32_t led; in cmd_on() local
73 err = parse_common_args(sh, argv, &dev, &led); in cmd_on()
78 shell_print(sh, "%s: turning on LED %d", dev->name, led); in cmd_on()
80 err = led_on(dev, led); in cmd_on()
113 uint32_t led; in cmd_get_info() local
118 err = parse_common_args(sh, argv, &dev, &led); in cmd_get_info()
123 shell_print(sh, "%s: getting LED %d information", dev->name, led); in cmd_get_info()
125 err = led_get_info(dev, led, &info); in cmd_get_info()
151 uint32_t led; in cmd_set_brightness() local
156 err = parse_common_args(sh, argv, &dev, &led); in cmd_set_brightness()
174 dev->name, led, value); in cmd_set_brightness()
176 err = led_set_brightness(dev, led, (uint8_t) value); in cmd_set_brightness()
187 uint32_t led; in cmd_set_color() local
193 err = parse_common_args(sh, argv, &dev, &led); in cmd_set_color()
226 dev->name, led, color[0]); in cmd_set_color()
232 err = led_set_color(dev, led, num_colors, color); in cmd_set_color()
335 return device_is_ready(dev) && DEVICE_API_IS(led, dev); in device_is_led_and_ready()
366 SHELL_CMD_REGISTER(led, &sub_led, "LED commands", NULL);