Lines Matching +full:code +full:- +full:format

4  * SPDX-License-Identifier: Apache-2.0
28 #include <zephyr/dt-bindings/display/panel.h>
37 * Display pixel format enumeration.
39 * In case a pixel format consists out of multiple bytes the byte order is
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 */
52 * @brief Bits required per pixel for display format
55 * format. It can be used to allocate a framebuffer based on a given
56 * display format type
114 /** Currently active pixel format for the display */
202 * @brief Callback API to set pixel format used by the display
244 * @retval 0 on success else negative errno code.
252 (struct display_driver_api *)dev->api; in display_write()
254 return api->write(dev, x, y, desc, buf); in display_write()
266 * @retval 0 on success else negative errno code.
267 * @retval -ENOSYS if not implemented.
275 (struct display_driver_api *)dev->api; in display_read()
277 if (api->read == NULL) { in display_read()
278 return -ENOSYS; in display_read()
281 return api->read(dev, x, y, desc, buf); in display_read()
296 (struct display_driver_api *)dev->api; in display_get_framebuffer()
298 if (api->get_framebuffer == NULL) { in display_get_framebuffer()
302 return api->get_framebuffer(dev); in display_get_framebuffer()
321 * @retval 0 on success else negative errno code.
322 * @retval -ENOSYS if not implemented.
327 (struct display_driver_api *)dev->api; in display_blanking_on()
329 if (api->blanking_on == NULL) { in display_blanking_on()
330 return -ENOSYS; in display_blanking_on()
333 return api->blanking_on(dev); in display_blanking_on()
345 * @retval 0 on success else negative errno code.
346 * @retval -ENOSYS if not implemented.
351 (struct display_driver_api *)dev->api; in display_blanking_off()
353 if (api->blanking_off == NULL) { in display_blanking_off()
354 return -ENOSYS; in display_blanking_off()
357 return api->blanking_off(dev); in display_blanking_off()
369 * @retval 0 on success else negative errno code.
370 * @retval -ENOSYS if not implemented.
376 (struct display_driver_api *)dev->api; in display_set_brightness()
378 if (api->set_brightness == NULL) { in display_set_brightness()
379 return -ENOSYS; in display_set_brightness()
382 return api->set_brightness(dev, brightness); in display_set_brightness()
394 * @retval 0 on success else negative errno code.
395 * @retval -ENOSYS if not implemented.
400 (struct display_driver_api *)dev->api; in display_set_contrast()
402 if (api->set_contrast == NULL) { in display_set_contrast()
403 return -ENOSYS; in display_set_contrast()
406 return api->set_contrast(dev, contrast); in display_set_contrast()
420 (struct display_driver_api *)dev->api; in display_get_capabilities()
422 api->get_capabilities(dev, capabilities); in display_get_capabilities()
426 * @brief Set pixel format used by the display
429 * @param pixel_format Pixel format to be used by display
431 * @retval 0 on success else negative errno code.
432 * @retval -ENOSYS if not implemented.
439 (struct display_driver_api *)dev->api; in display_set_pixel_format()
441 if (api->set_pixel_format == NULL) { in display_set_pixel_format()
442 return -ENOSYS; in display_set_pixel_format()
445 return api->set_pixel_format(dev, pixel_format); in display_set_pixel_format()
454 * @retval 0 on success else negative errno code.
455 * @retval -ENOSYS if not implemented.
462 (struct display_driver_api *)dev->api; in display_set_orientation()
464 if (api->set_orientation == NULL) { in display_set_orientation()
465 return -ENOSYS; in display_set_orientation()
468 return api->set_orientation(dev, orientation); in display_set_orientation()