/Zephyr-latest/tests/drivers/led/led_api/src/ |
D | test_led_api.c | 27 .num_colors = \ 36 .num_colors = 0, \ 99 zassert_equal(info->num_colors, test_led_info[led].num_colors, in ZTEST_USER() 101 info->num_colors, test_led_info[led].num_colors); in ZTEST_USER() 104 led, info->label, info->index, info->num_colors); in ZTEST_USER() 106 if (!info->num_colors) { in ZTEST_USER() 112 for (col = 0; col < info->num_colors; col++) { in ZTEST_USER() 165 uint8_t num_colors = test_led_info[led].num_colors; in ZTEST_USER() local 168 if (num_colors > TEST_MAX_COLORS) { in ZTEST_USER() 171 led, num_colors, TEST_MAX_COLORS); in ZTEST_USER() [all …]
|
/Zephyr-latest/drivers/led/ |
D | ncp5623.c | 67 static int ncp5623_set_color(const struct device *dev, uint32_t led, uint8_t num_colors, in ncp5623_set_color() argument 78 if (led_info->num_colors != 3) { in ncp5623_set_color() 81 if (num_colors != 3) { in ncp5623_set_color() 107 if (led_info->num_colors != 1) { in ncp5623_set_brightness() 152 if (led_info->num_colors != NCP5623_CHANNEL_COUNT) { in ncp5623_led_init() 154 dev->name, led_info->num_colors, NCP5623_CHANNEL_COUNT); in ncp5623_led_init() 165 if (led_info->num_colors > 1) { in ncp5623_led_init() 168 dev->name, led_info->num_colors); in ncp5623_led_init() 202 .num_colors = DT_PROP_LEN(led_node_id, color_mapping), \
|
D | is31fl3194.c | 78 static int is31fl3194_set_color(const struct device *dev, uint32_t led, uint8_t num_colors, in is31fl3194_set_color() argument 89 if (info->num_colors != 3) { in is31fl3194_set_color() 93 if (num_colors != 3) { in is31fl3194_set_color() 144 if (info->num_colors != 1) { in is31fl3194_set_brightness() 220 if (info->num_colors != 3) { in is31fl3194_check_config() 223 dev->name, info->num_colors); in is31fl3194_check_config() 239 if (info->num_colors != 1) { in is31fl3194_check_config() 242 dev->name, info->num_colors); in is31fl3194_check_config() 292 if (info->num_colors == IS31FL3194_CHANNEL_COUNT) { in is31fl3194_init() 331 .num_colors = DT_PROP_LEN(led_node_id, color_mapping), \
|
D | led_shell.c | 133 shell_print(sh, "Num colors : %d", info->num_colors); in cmd_get_info() 137 for (i = 1; i < info->num_colors; i++) { in cmd_get_info() 189 size_t num_colors; in cmd_set_color() local 198 num_colors = argc - arg_idx_value; in cmd_set_color() 199 if (num_colors > MAX_CHANNEL_ARGS) { in cmd_set_color() 202 num_colors, MAX_CHANNEL_ARGS); in cmd_set_color() 206 for (i = 0; i < num_colors; i++) { in cmd_set_color() 227 for (i = 1; i < num_colors; i++) { in cmd_set_color() 232 err = led_set_color(dev, led, num_colors, color); in cmd_set_color()
|
D | led_handlers.c | 57 uint8_t num_colors, const uint8_t *color) in z_vrfy_led_set_color() argument 60 K_OOPS(K_SYSCALL_MEMORY_READ(color, num_colors)); in z_vrfy_led_set_color() 61 return z_impl_led_set_color(dev, led, num_colors, color); in z_vrfy_led_set_color()
|
D | lp50xx.c | 152 uint8_t num_colors, const uint8_t *color) in lp50xx_set_color() argument 162 if (num_colors != led_info->num_colors) { in lp50xx_set_color() 165 num_colors, in lp50xx_set_color() 166 led_info->num_colors); in lp50xx_set_color() 358 .num_colors = \
|
/Zephyr-latest/drivers/led_strip/ |
D | ws2812_gpio.c | 30 uint8_t num_colors; member 144 for (j = 0; j < config->num_colors; j++) { in ws2812_gpio_update_rgb() 165 return send_buf(dev, (uint8_t *)pixels, num_pixels * config->num_colors); in ws2812_gpio_update_rgb() 209 for (i = 0; i < cfg->num_colors; i++) { \ 231 .num_colors = WS2812_NUM_COLORS(idx), \
|
D | ws2812_spi.c | 44 uint8_t num_colors; member 86 .len = (cfg->length * 8 * cfg->num_colors), in ws2812_strip_update_rgb() 103 for (j = 0; j < cfg->num_colors; j++) { in ws2812_strip_update_rgb() 154 for (i = 0; i < cfg->num_colors; i++) { in ws2812_spi_init() 212 .num_colors = WS2812_NUM_COLORS(idx), \
|
D | ws2812_rpi_pico_pio.c | 26 uint8_t num_colors; member 58 sm_config_set_out_shift(&sm_config, false, true, (config->num_colors == 4 ? 32 : 24)); in ws2812_led_strip_sm_init() 86 for (size_t j = 0; j < config->num_colors; j++) { in ws2812_led_strip_update_rgb() 104 pio_sm_put_blocking(pio, data->sm, color << (config->num_colors == 4 ? 0 : 8)); in ws2812_led_strip_update_rgb() 139 for (uint32_t i = 0; i < config->num_colors; i++) { in ws2812_led_strip_init() 193 .num_colors = DT_PROP_LEN(node, color_mapping), \
|
D | tlc5971.c | 23 uint8_t num_colors; member 215 for (int color = 0; color < cfg->num_colors; color++) { in tlc5971_fill_data_buffer() 296 if (cfg->num_colors != TLC5971_NUMBER_OF_COLORS) { in tlc5971_init() 302 for (int i = 0; i < cfg->num_colors; i++) { in tlc5971_init() 338 .num_colors = DT_INST_PROP_LEN(inst, color_mapping), \
|
D | ws2812_i2s.c | 38 uint8_t num_colors; member 96 for (uint16_t j = 0; j < cfg->num_colors; j++) { in ws2812_strip_update_rgb() 187 for (uint16_t i = 0; i < cfg->num_colors; i++) { in ws2812_i2s_init() 236 .num_colors = WS2812_NUM_COLORS(idx), \
|
/Zephyr-latest/include/zephyr/drivers/ |
D | led.h | 44 uint8_t num_colors; member 82 uint8_t num_colors, const uint8_t *color); 281 uint8_t num_colors, const uint8_t *color); 284 uint8_t num_colors, const uint8_t *color) in z_impl_led_set_color() argument 292 return api->set_color(dev, led, num_colors, color); in z_impl_led_set_color()
|
/Zephyr-latest/samples/drivers/led/lp50xx/src/ |
D | main.c | 52 for (color = 0; color < info->num_colors; color++) { in prepare_color_buffer() 300 printk(" - %d colors", info->num_colors); in run_test() 305 for (col = 1; col < info->num_colors; col++) { in run_test()
|
/Zephyr-latest/drivers/sensor/grow_r502a/ |
D | grow_r502a.c | 1183 uint8_t num_colors, const uint8_t *color) in grow_r502a_led_set_color() argument
|