Searched refs:led_ctrl (Results 1 – 2 of 2) sorted by relevance
57 static ZTEST_BMEM const struct device *const led_ctrl = DEVICE_DT_GET(DT_ALIAS(led_controller_0)); variable61 zassert_true(device_is_ready(led_ctrl), "LED controller is not ready"); in test_led_setup()65 k_object_access_grant(led_ctrl, k_current_get()); in test_led_setup()73 if (!led_ctrl || !num_leds) { in ZTEST_USER()81 ret = led_get_info(led_ctrl, led, &info); in ZTEST_USER()129 if (!led_ctrl || !num_leds) { in ZTEST_USER()134 ret = led_on(led_ctrl, led); in ZTEST_USER()144 if (!led_ctrl || !num_leds) { in ZTEST_USER()149 ret = led_off(led_ctrl, led); in ZTEST_USER()160 if (!led_ctrl || !num_leds) { in ZTEST_USER()[all …]
434 struct r502a_led_params led_ctrl = { in fps_get_image() local457 fps_led_control(dev, &led_ctrl); in fps_get_image()460 led_ctrl.ctrl_code = R502A_LED_CTRL_ON_ALWAYS; in fps_get_image()461 led_ctrl.color_idx = R502A_LED_COLOR_RED; in fps_get_image()462 fps_led_control(dev, &led_ctrl); in fps_get_image()539 struct r502a_led_params led_ctrl = { in fps_store_model() local565 led_ctrl.color_idx = R502A_LED_COLOR_BLUE; in fps_store_model()566 led_ctrl.ctrl_code = R502A_LED_CTRL_FLASHING; in fps_store_model()567 led_ctrl.cycle = 0x03; in fps_store_model()568 fps_led_control(dev, &led_ctrl); in fps_store_model()[all …]