Home
last modified time | relevance | path

Searched +full:bgr +full:- (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/dts/bindings/display/
Dsitronix,st7735r.yaml1 # Copyright (c) 2020, Kim Bøndergaard <kim@fam-boendergaard.dk>
2 # SPDX-License-Identifier: Apache-2.0
8 include: [mipi-dbi-spi-device.yaml, display-controller.yaml]
11 x-offset:
16 y-offset:
32 type: uint8-array
37 type: uint8-array
42 type: uint8-array
47 type: uint8-array
52 type: uint8-array
[all …]
Dsitronix,st7796s.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [mipi-dbi-spi-device.yaml, display-controller.yaml]
12 type: uint8-array
19 type: uint8-array
26 type: uint8-array
33 type: uint8-array
40 type: uint8-array
47 type: uint8-array
69 type: uint8-array
75 type: uint8-array
[all …]
/Zephyr-latest/dts/bindings/led_strip/
Dti,tlc5971.yaml2 # SPDX-License-Identifier: Apache-2.0
8 tree node. Length of daisy chains in pixels is defined by the chain-length
9 property. Note: chain-length must be a multiple of 4. A single TLC5971 device
12 The color order of the TLC5971 is BGR. Applications can provide custom mappings
13 using the color-mapping property.
21 spi-max-frequency = <DT_FREQ_M(1)>;
23 chain-length = <24>;
24 color-mapping = <LED_COLOR_ID_BLUE>,
32 include: [spi-device.yaml, led-strip.yaml]
/Zephyr-latest/modules/lvgl/
Dlvgl_display_24bit.c5 * SPDX-License-Identifier: Apache-2.0
14 uint16_t w = area->x2 - area->x1 + 1; in lvgl_flush_cb_24bit()
15 uint16_t h = area->y2 - area->y1 + 1; in lvgl_flush_cb_24bit()
19 flush.x = area->x1; in lvgl_flush_cb_24bit()
20 flush.y = area->y1; in lvgl_flush_cb_24bit()
27 /* LVGL assumes BGR byte ordering, convert to RGB */ in lvgl_flush_cb_24bit()
/Zephyr-latest/drivers/display/
DKconfig.sdl4 # SPDX-License-Identifier: Apache-2.0
38 bool "BGR 565"
Ddisplay_st7796s.h4 * SPDX-License-Identifier: Apache-2.0
38 #define ST7796S_MADCTL_BGR BIT(3) /* Sets BGR color mode */
Ddisplay_st7796s.c4 * SPDX-License-Identifier: Apache-2.0
57 const struct st7796s_config *config = dev->config; in st7796s_send_cmd()
59 return mipi_dbi_command_write(config->mipi_dbi, &config->dbi_config, in st7796s_send_cmd()
72 addr_data[1] = sys_cpu_to_be16(x + width - 1); in st7796s_set_cursor()
82 addr_data[1] = sys_cpu_to_be16(y + height - 1); in st7796s_set_cursor()
100 const struct st7796s_config *config = dev->config; in st7796s_get_pixelfmt()
103 * Invert the pixel format for 8-bit 8080 Parallel Interface. in st7796s_get_pixelfmt()
111 * This is not an issue when using a 16-bit interface. in st7796s_get_pixelfmt()
115 * However this is an issue when using a 8-bit interface. in st7796s_get_pixelfmt()
119 * Hence we report pixel format as RGB when MADCTL setting is BGR in st7796s_get_pixelfmt()
[all …]
Ddisplay_st7735r.c7 * Copyright (c) 2020 Kim Bøndergaard <kim@fam-boendergaard.dk>
10 * SPDX-License-Identifier: Apache-2.0
65 struct st7735r_data *data = dev->data; in st7735r_set_lcd_margins()
67 data->x_offset = x_offset; in st7735r_set_lcd_margins()
68 data->y_offset = y_offset; in st7735r_set_lcd_margins()
74 const struct st7735r_config *config = dev->config; in st7735r_transmit_hold()
76 return mipi_dbi_command_write(config->mipi_dev, &config->dbi_config, in st7735r_transmit_hold()
83 const struct st7735r_config *config = dev->config; in st7735r_transmit()
87 mipi_dbi_release(config->mipi_dev, &config->dbi_config); in st7735r_transmit()
107 const struct st7735r_config *config = dev->config; in st7735r_reset_display()
[all …]
Ddisplay_hx8394.c4 * SPDX-License-Identifier: Apache-2.0
451 const struct hx8394_config *config = dev->config; in hx8394_blanking_off()
453 if (config->bl_gpio.port != NULL) { in hx8394_blanking_off()
454 return gpio_pin_set_dt(&config->bl_gpio, 1); in hx8394_blanking_off()
456 return -ENOTSUP; in hx8394_blanking_off()
462 const struct hx8394_config *config = dev->config; in hx8394_blanking_on()
464 if (config->bl_gpio.port != NULL) { in hx8394_blanking_on()
465 return gpio_pin_set_dt(&config->bl_gpio, 0); in hx8394_blanking_on()
467 return -ENOTSUP; in hx8394_blanking_on()
474 const struct hx8394_config *config = dev->config; in hx8394_set_pixel_format()
[all …]
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/
Dgmap.rst5 Unlike most other low-layer profiles, GMAP is a profile that exists and has a service (GMAS) on all
15 .. code-block:: console
17 uart:~$ gmap --help
18 gmap - Bluetooth GMAP shell commands
21 set_role : [ugt | ugg | bgr | bgs]
48 .. code-block:: console
54 uart:~$ gatt exchange-mtu
/Zephyr-latest/drivers/led_strip/
Dtlc5971.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/led/led.h>
57 /** GS reference clock edge select bit for OUTXn on-off timing control in FC data */
60 /** Constant-current output enable bit in FC data (0 = output control enabled, 1 = blank). */
157 temp = pixel_data->r; in tlc5971_map_color()
160 temp = pixel_data->g; in tlc5971_map_color()
163 temp = pixel_data->b; in tlc5971_map_color()
186 const struct tlc5971_config *cfg = dev->config; in tlc5971_fill_data_buffer()
187 struct tlc5971_data *data = dev->data; in tlc5971_fill_data_buffer()
188 uint8_t *data_buffer = data->data_buffer; in tlc5971_fill_data_buffer()
[all …]
Dws2812_spi.c6 * SPDX-License-Identifier: Apache-2.0
24 #include <zephyr/dt-bindings/led/led.h>
26 /* spi-one-frame and spi-zero-frame in DT are for 8-bit frames. */
32 * - mode 0 (the default), 8 bit, MSB first (arbitrary), one-line SPI
33 * - no shenanigans (don't hold CS, don't hold the device lock, this
52 return dev->config; in dev_cfg()
56 * Serialize an 8-bit color channel value into an equivalent sequence
66 buf[i] = color & BIT(7 - i) ? one_frame : zero_frame; in ws2812_spi_ser()
83 const uint8_t one = cfg->one_frame, zero = cfg->zero_frame; in ws2812_strip_update_rgb()
85 .buf = cfg->px_buf, in ws2812_strip_update_rgb()
[all …]
Dws2812_gpio.c6 * SPDX-License-Identifier: Apache-2.0
25 #include <zephyr/dt-bindings/led/led.h>
42 * https://github.com/zephyrproject-rtos/zephyr/issues/11917.
47 * Per Arm docs, both Rd and Rn must be r0-r7, so we use the "l"
78 const struct ws2812_gpio_cfg *config = dev->config; in send_buf()
79 volatile uint32_t *base = (uint32_t *)&NRF_GPIO->OUTSET; in send_buf()
80 const uint32_t val = BIT(config->gpio.pin); in send_buf()
99 while (len--) { in send_buf()
107 * inter-bit time will be longer than TxL, but the in send_buf()
114 for (i = 7; i >= 0; i--) { in send_buf()
[all …]
Dws2812_rpi_pico_pio.c4 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/led/led.h>
42 const struct ws2812_led_strip_config *config = dev->config; in ws2812_led_strip_sm_init()
44 sys_clock_hw_cycles_per_sec() / (config->cycles_per_bit * config->frequency); in ws2812_led_strip_sm_init()
49 pio = pio_rpi_pico_get_pio(config->piodev); in ws2812_led_strip_sm_init()
53 return -EINVAL; in ws2812_led_strip_sm_init()
57 sm_config_set_sideset_pins(&sm_config, config->gpio_pin); in ws2812_led_strip_sm_init()
58 sm_config_set_out_shift(&sm_config, false, true, (config->num_colors == 4 ? 32 : 24)); in ws2812_led_strip_sm_init()
61 pio_sm_set_consecutive_pindirs(pio, sm, config->gpio_pin, 1, true); in ws2812_led_strip_sm_init()
62 pio_sm_init(pio, sm, -1, &sm_config); in ws2812_led_strip_sm_init()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dgmap.c9 * SPDX-License-Identifier: Apache-2.0
90 features->ugg_feat |= (BT_GMAP_UGG_FEAT_MULTIPLEX | BT_GMAP_UGG_FEAT_96KBPS_SOURCE); in set_gmap_features()
93 features->ugg_feat |= BT_GMAP_UGG_FEAT_MULTISINK; in set_gmap_features()
100 features->ugt_feat |= (BT_GMAP_UGT_FEAT_SOURCE | BT_GMAP_UGT_FEAT_80KBPS_SOURCE); in set_gmap_features()
102 features->ugt_feat |= BT_GMAP_UGT_FEAT_MULTISOURCE; in set_gmap_features()
106 features->ugt_feat |= (BT_GMAP_UGT_FEAT_SINK | BT_GMAP_UGT_FEAT_64KBPS_SINK); in set_gmap_features()
108 features->ugt_feat |= BT_GMAP_UGT_FEAT_MULTISINK; in set_gmap_features()
114 features->bgs_feat |= BT_GMAP_BGS_FEAT_96KBPS; in set_gmap_features()
118 features->bgr_feat |= BT_GMAP_BGR_FEAT_MULTISINK; in set_gmap_features()
120 features->bgr_feat |= BT_GMAP_BGR_FEAT_MULTIPLEX; in set_gmap_features()
[all …]
/Zephyr-latest/subsys/bluetooth/audio/
Dgmap_server.c4 * SPDX-License-Identifier: Apache-2.0
110 /* There are 4 optional characteristics - Use a dummy definition to allocate memory and then add the
160 LOG_DBG("Device does not support the BGR role"); in valid_gmap_role()
352 return -EINVAL; in bt_gmap_register()
358 return -EINVAL; in bt_gmap_register()
367 return -ENOEXEC; in bt_gmap_register()
383 return -ENOEXEC; in bt_gmap_set_role()
389 return -EINVAL; in bt_gmap_set_role()
395 return -EINVAL; in bt_gmap_set_role()
404 return -EALREADY; in bt_gmap_set_role()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Ddisplay.h4 * SPDX-License-Identifier: Apache-2.0
28 #include <zephyr/dt-bindings/display/panel.h>
43 PIXEL_FORMAT_RGB_888 = BIT(0), /**< 24-bit RGB */
46 PIXEL_FORMAT_ARGB_8888 = BIT(3), /**< 32-bit ARGB */
47 PIXEL_FORMAT_RGB_565 = BIT(4), /**< 16-bit RGB */
48 PIXEL_FORMAT_BGR_565 = BIT(5), /**< 16-bit BGR */
252 (struct display_driver_api *)dev->api; in display_write()
254 return api->write(dev, x, y, desc, buf); in display_write()
267 * @retval -ENOSYS if not implemented.
275 (struct display_driver_api *)dev->api; in display_read()
[all …]