Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
display.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 Jan Van Winkel <jan.van_winkel@dxplore.eu>
3 * SPDX-FileCopyrightText: 2026 Abderrahmane JARMOUNI
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
13
14#ifndef ZEPHYR_INCLUDE_DRIVERS_DISPLAY_H_
15#define ZEPHYR_INCLUDE_DRIVERS_DISPLAY_H_
16
30
31#include <zephyr/device.h>
32#include <errno.h>
33#include <stddef.h>
34#include <zephyr/types.h>
36
37#ifdef __cplusplus
38extern "C" {
39#endif
40
298
306#define DISPLAY_BITS_PER_PIXEL(fmt) \
307 ((((fmt & PIXEL_FORMAT_RGB_888) >> 0) * 24U) + \
308 (((fmt & PIXEL_FORMAT_MONO01) >> 1) * 1U) + \
309 (((fmt & PIXEL_FORMAT_MONO10) >> 2) * 1U) + \
310 (((fmt & PIXEL_FORMAT_ARGB_8888) >> 3) * 32U) + \
311 (((fmt & PIXEL_FORMAT_RGB_565) >> 4) * 16U) + \
312 (((fmt & PIXEL_FORMAT_RGB_565X) >> 5) * 16U) + \
313 (((fmt & PIXEL_FORMAT_L_8) >> 6) * 8U) + \
314 (((fmt & PIXEL_FORMAT_AL_88) >> 7) * 16U) + \
315 (((fmt & PIXEL_FORMAT_XRGB_8888) >> 8) * 32U) + \
316 (((fmt & PIXEL_FORMAT_BGR_888) >> 9) * 24U) + \
317 (((fmt & PIXEL_FORMAT_ABGR_8888) >> 10) * 32U) + \
318 (((fmt & PIXEL_FORMAT_RGBA_8888) >> 11) * 32U) + \
319 (((fmt & PIXEL_FORMAT_BGRA_8888) >> 12) * 32U) + \
320 (((fmt & PIXEL_FORMAT_I_4) >> 13) * 4U) + \
321 (((fmt & PIXEL_FORMAT_L_4) >> 14) * 4U) + \
322 (((fmt & PIXEL_FORMAT_YUYV) >> 15) * 16U) + \
323 (((fmt & PIXEL_FORMAT_NV12) >> 16) * 16U))
324
352
362
363#if defined(CONFIG_DISPLAY_COLOR_PALETTE) || defined(__DOXYGEN__)
364
376
377#endif /* defined(CONFIG_DISPLAY_COLOR_PALETTE) || defined(__DOXYGEN__) */
378
395#if defined(CONFIG_DISPLAY_COLOR_PALETTE) || defined(__DOXYGEN__)
397 struct display_palette_color color_palette[CONFIG_DISPLAY_COLOR_PALETTE_MAX_SIZE];
398#endif /* defined(CONFIG_DISPLAY_COLOR_PALETTE) || defined(__DOXYGEN__) */
399};
400
428
442
457
471
481
497typedef enum display_event_result (*display_event_cb_t)(const struct device *dev,
498 uint32_t evt,
499 const struct display_event_data *data,
500 void *user_data);
501
506
511typedef int (*display_blanking_on_api)(const struct device *dev);
512
517typedef int (*display_blanking_off_api)(const struct device *dev);
518
523typedef int (*display_write_api)(const struct device *dev, const uint16_t x,
524 const uint16_t y,
525 const struct display_buffer_descriptor *desc,
526 const void *buf);
527
532typedef int (*display_read_api)(const struct device *dev, const uint16_t x,
533 const uint16_t y,
534 const struct display_buffer_descriptor *desc,
535 void *buf);
536
541typedef int (*display_clear_api)(const struct device *dev);
542
547typedef void *(*display_get_framebuffer_api)(const struct device *dev);
548
553typedef int (*display_set_brightness_api)(const struct device *dev,
554 const uint8_t brightness);
555
560typedef int (*display_set_contrast_api)(const struct device *dev,
561 const uint8_t contrast);
562
567typedef void (*display_get_capabilities_api)(const struct device *dev,
568 struct display_capabilities *
569 capabilities);
570
575typedef int (*display_set_pixel_format_api)(const struct device *dev,
576 const enum display_pixel_format
577 pixel_format);
578
583typedef int (*display_set_orientation_api)(const struct device *dev,
584 const enum display_orientation
585 orientation);
586
591typedef int (*display_set_timing_api)(const struct device *dev,
592 const struct display_timing *timing);
593
598typedef int (*display_get_timing_api)(const struct device *dev,
599 struct display_timing *timing);
600
605typedef int (*display_register_event_cb_api)(const struct device *dev,
606 display_event_cb_t cb, void *user_data,
607 uint32_t event_mask, bool in_isr,
608 uint32_t *out_reg_handle);
609
614typedef int (*display_unregister_event_cb_api)(const struct device *dev, uint32_t reg_handle);
615
681
684
701static inline int display_write(const struct device *dev, const uint16_t x,
702 const uint16_t y,
703 const struct display_buffer_descriptor *desc,
704 const void *buf)
705{
706 return DEVICE_API_GET(display, dev)->write(dev, x, y, desc, buf);
707}
708
724static inline int display_read(const struct device *dev, const uint16_t x,
725 const uint16_t y,
726 const struct display_buffer_descriptor *desc,
727 void *buf)
728{
729 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
730
731 if (api->read == NULL) {
732 return -ENOSYS;
733 }
734
735 return api->read(dev, x, y, desc, buf);
736}
737
746static inline int display_clear(const struct device *dev)
747{
748 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
749
750 if (api->clear == NULL) {
751 return -ENOSYS;
752 }
753
754 return api->clear(dev);
755}
756
766static inline void *display_get_framebuffer(const struct device *dev)
767{
768 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
769
770 if (api->get_framebuffer == NULL) {
771 return NULL;
772 }
773
774 return api->get_framebuffer(dev);
775}
776
797static inline int display_blanking_on(const struct device *dev)
798{
799 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
800
801 if (api->blanking_on == NULL) {
802 return -ENOSYS;
803 }
804
805 return api->blanking_on(dev);
806}
807
821static inline int display_blanking_off(const struct device *dev)
822{
823 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
824
825 if (api->blanking_off == NULL) {
826 return -ENOSYS;
827 }
828
829 return api->blanking_off(dev);
830}
831
845static inline int display_set_brightness(const struct device *dev,
846 uint8_t brightness)
847{
848 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
849
850 if (api->set_brightness == NULL) {
851 return -ENOSYS;
852 }
853
854 return api->set_brightness(dev, brightness);
855}
856
869static inline int display_set_contrast(const struct device *dev, uint8_t contrast)
870{
871 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
872
873 if (api->set_contrast == NULL) {
874 return -ENOSYS;
875 }
876
877 return api->set_contrast(dev, contrast);
878}
879
886static inline void display_get_capabilities(const struct device *dev,
887 struct display_capabilities *
888 capabilities)
889{
890 __ASSERT(capabilities != NULL, "display_capabilities struct is NULL");
891 memset(capabilities, 0, sizeof(struct display_capabilities));
892 DEVICE_API_GET(display, dev)->get_capabilities(dev, capabilities);
893}
894
908static inline int
910 const enum display_pixel_format pixel_format)
911{
912 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
913
914 if (api->set_pixel_format == NULL) {
915 return -ENOSYS;
916 }
917
918 return api->set_pixel_format(dev, pixel_format);
919}
920
932static inline int display_set_orientation(const struct device *dev,
933 const enum display_orientation
934 orientation)
935{
936 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
937
938 if (api->set_orientation == NULL) {
939 return -ENOSYS;
940 }
941
942 return api->set_orientation(dev, orientation);
943}
944
963static inline int display_set_timing(const struct device *dev,
964 const struct display_timing *timing)
965{
966 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
967
968 if (api->set_timing == NULL) {
969 return -ENOSYS;
970 }
971
972 return api->set_timing(dev, timing);
973}
974
987static inline int display_get_timing(const struct device *dev,
988 struct display_timing *timing)
989{
990 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
991
992 if (api->get_timing == NULL) {
993 return -ENOSYS;
994 }
995
996 return api->get_timing(dev, timing);
997}
998
1023static inline int display_register_event_cb(const struct device *dev,
1024 display_event_cb_t cb, void *user_data,
1025 uint32_t event_mask, bool in_isr,
1026 uint32_t *out_reg_handle)
1027{
1028 __ASSERT(cb != NULL, "Registration failed: callback function pointer is NULL");
1029
1030 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
1031 struct display_capabilities caps;
1032
1033 if (api->register_event_cb == NULL) {
1034 return -ENOSYS;
1035 }
1036
1037 display_get_capabilities(dev, &caps);
1038 if (!caps.supported_events) {
1039 return -ENOSYS;
1040 }
1041 if (event_mask == 0 || (~caps.supported_events & event_mask)) {
1042 return -EINVAL;
1043 }
1044
1045 return api->register_event_cb(dev, cb, user_data, event_mask, in_isr, out_reg_handle);
1046}
1047
1059static inline int display_unregister_event_cb(const struct device *dev, uint32_t reg_handle)
1060{
1061 const struct display_driver_api *api = DEVICE_API_GET(display, dev);
1062
1063 if (api->unregister_event_cb == NULL || api->register_event_cb == NULL) {
1064 return -ENOSYS;
1065 }
1066
1067 if (reg_handle == 0U) {
1068 return -EINVAL;
1069 }
1070
1071 return api->unregister_event_cb(dev, reg_handle);
1072}
1073
1074#ifdef __cplusplus
1075}
1076#endif
1077
1081
1082#endif /* ZEPHYR_INCLUDE_DRIVERS_DISPLAY_H_ */
APIs and macros for the Zephyr device model.
#define DEVICE_API_GET(_class, _dev)
Expands to the pointer of a device's API for a given class.
Definition device.h:1505
System error numbers.
int(* display_set_timing_api)(const struct device *dev, const struct display_timing *timing)
Callback API to set the timings used by the display.
Definition display.h:591
int(* display_set_pixel_format_api)(const struct device *dev, const enum display_pixel_format pixel_format)
Callback API to set pixel format used by the display.
Definition display.h:575
void(* display_get_capabilities_api)(const struct device *dev, struct display_capabilities *capabilities)
Callback API to get display capabilities.
Definition display.h:567
int(* display_write_api)(const struct device *dev, const uint16_t x, const uint16_t y, const struct display_buffer_descriptor *desc, const void *buf)
Callback API for writing data to the display.
Definition display.h:523
int(* display_set_brightness_api)(const struct device *dev, const uint8_t brightness)
Callback API to set display brightness.
Definition display.h:553
void *(* display_get_framebuffer_api)(const struct device *dev)
Callback API to get framebuffer pointer.
Definition display.h:547
int(* display_read_api)(const struct device *dev, const uint16_t x, const uint16_t y, const struct display_buffer_descriptor *desc, void *buf)
Callback API for reading data from the display.
Definition display.h:532
int(* display_blanking_off_api)(const struct device *dev)
Callback API to turn off display blanking.
Definition display.h:517
int(* display_register_event_cb_api)(const struct device *dev, display_event_cb_t cb, void *user_data, uint32_t event_mask, bool in_isr, uint32_t *out_reg_handle)
Callback API to register display event callback.
Definition display.h:605
int(* display_blanking_on_api)(const struct device *dev)
Callback API to turn on display blanking.
Definition display.h:511
int(* display_unregister_event_cb_api)(const struct device *dev, uint32_t reg_handle)
Callback API to unregister display event callback.
Definition display.h:614
int(* display_set_contrast_api)(const struct device *dev, const uint8_t contrast)
Callback API to set display contrast.
Definition display.h:560
int(* display_get_timing_api)(const struct device *dev, struct display_timing *timing)
Callback API to get the timings used by the display.
Definition display.h:598
int(* display_clear_api)(const struct device *dev)
Callback API for clearing the screen of the display.
Definition display.h:541
int(* display_set_orientation_api)(const struct device *dev, const enum display_orientation orientation)
Callback API to set orientation used by the display.
Definition display.h:583
display_event
Display event types.
Definition display.h:459
display_screen_info
Display screen information.
Definition display.h:328
static int display_write(const struct device *dev, const uint16_t x, const uint16_t y, const struct display_buffer_descriptor *desc, const void *buf)
Write data to display.
Definition display.h:701
static int display_read(const struct device *dev, const uint16_t x, const uint16_t y, const struct display_buffer_descriptor *desc, void *buf)
Read data from display.
Definition display.h:724
static void * display_get_framebuffer(const struct device *dev)
Get pointer to framebuffer for direct access.
Definition display.h:766
static int display_blanking_off(const struct device *dev)
Turn display blanking off.
Definition display.h:821
static int display_set_orientation(const struct device *dev, const enum display_orientation orientation)
Set display orientation.
Definition display.h:932
display_event_result
Display event callback return flags.
Definition display.h:473
static int display_clear(const struct device *dev)
Clear the screen of the display device.
Definition display.h:746
static void display_get_capabilities(const struct device *dev, struct display_capabilities *capabilities)
Get display capabilities.
Definition display.h:886
static int display_set_timing(const struct device *dev, const struct display_timing *timing)
Set display timings.
Definition display.h:963
static int display_set_pixel_format(const struct device *dev, const enum display_pixel_format pixel_format)
Set pixel format used by the display.
Definition display.h:909
static int display_set_contrast(const struct device *dev, uint8_t contrast)
Set the contrast of the display.
Definition display.h:869
static int display_register_event_cb(const struct device *dev, display_event_cb_t cb, void *user_data, uint32_t event_mask, bool in_isr, uint32_t *out_reg_handle)
Register event callback for a display device.
Definition display.h:1023
static int display_get_timing(const struct device *dev, struct display_timing *timing)
Get display timings.
Definition display.h:987
static int display_unregister_event_cb(const struct device *dev, uint32_t reg_handle)
Unregister event callback for a display device.
Definition display.h:1059
display_pixel_format
Display pixel formats.
Definition display.h:49
display_orientation
Enumeration with possible display orientation.
Definition display.h:356
static int display_blanking_on(const struct device *dev)
Turn display blanking on.
Definition display.h:797
static int display_set_brightness(const struct device *dev, uint8_t brightness)
Set the brightness of the display.
Definition display.h:845
enum display_event_result(* display_event_cb_t)(const struct device *dev, uint32_t evt, const struct display_event_data *data, void *user_data)
Called either in ISR context (if arg in_isr=true at register time, see display_register_event_cb ) or...
Definition display.h:497
@ DISPLAY_EVENT_FIFO_UNDERFLOW
Fired when a FIFO underflow occurs.
Definition display.h:469
@ DISPLAY_EVENT_LINE_INT
Fired when controller reaches a configured scanline.
Definition display.h:461
@ DISPLAY_EVENT_FRAME_DONE
Fired when a frame transfer to the panel or frame buffer update completes.
Definition display.h:465
@ DISPLAY_EVENT_VSYNC
Fired at vertical sync / start of new frame.
Definition display.h:463
@ SCREEN_INFO_X_ALIGNMENT_WIDTH
Screen has x alignment constrained to width.
Definition display.h:350
@ SCREEN_INFO_EPD
Electrophoretic Display.
Definition display.h:342
@ SCREEN_INFO_DOUBLE_BUFFER
Screen has two alternating ram buffers.
Definition display.h:346
@ SCREEN_INFO_MONO_VTILED
If selected, one octet represents 8 pixels ordered vertically, otherwise ordered horizontally.
Definition display.h:333
@ SCREEN_INFO_MONO_MSB_FIRST
If selected, the MSB represents the first pixel, otherwise MSB represents the last pixel.
Definition display.h:338
@ DISPLAY_EVENT_RESULT_CONTINUE
Let the driver execute its default handling.
Definition display.h:475
@ DISPLAY_EVENT_RESULT_HANDLED
The callback handled the event and the driver should skip its default processing for that event.
Definition display.h:479
@ PIXEL_FORMAT_L_4
4-bit greyscale format with 2 pixels packed per byte.
Definition display.h:248
@ PIXEL_FORMAT_ABGR_8888
32-bit BGR format with 8 bits per component and 8 bits for alpha.
Definition display.h:188
@ PIXEL_FORMAT_RGB_565X
16-bit RGB format packed into two bytes.
Definition display.h:119
@ PIXEL_FORMAT_BGRA_8888
32-bit BGR format with 8 bits per component and 8 bits for alpha.
Definition display.h:216
@ PIXEL_FORMAT_L_8
8-bit Greyscale format
Definition display.h:132
@ PIXEL_FORMAT_XRGB_8888
32-bit RGB format with 8 bits per component and 8 bits unused.
Definition display.h:160
@ PIXEL_FORMAT_BGR_888
24-bit BGR format with 8 bits per component.
Definition display.h:174
@ PIXEL_FORMAT_MONO10
Monochrome (1=Black 0=White).
Definition display.h:78
@ PIXEL_FORMAT_YUYV
Packed YUV 4:2:2 format, two pixels per four bytes.
Definition display.h:268
@ PIXEL_FORMAT_ARGB_8888
32-bit RGB format with 8 bits per component and 8 bits for alpha.
Definition display.h:92
@ PIXEL_FORMAT_AL_88
16-bit Greyscale format with 8-bit luminance and 8-bit for alpha
Definition display.h:146
@ PIXEL_FORMAT_RGBA_8888
32-bit RGB format with 8 bits per component and 8 bits for alpha.
Definition display.h:202
@ PIXEL_FORMAT_MONO01
1-bit monochrome format with 1 bit per pixel, thus each byte represent 8 pixels Two variants,...
Definition display.h:77
@ PIXEL_FORMAT_RGB_565
16-bit RGB format packed into two bytes: 5 red bits [15:11], 6 green bits [10:5], 5 blue bits [4:0].
Definition display.h:107
@ PIXEL_FORMAT_RGB_888
24-bit RGB format with 8 bits per component.
Definition display.h:62
@ PIXEL_FORMAT_I_4
4-bit indexed color format with 2 pixels packed per byte.
Definition display.h:232
@ PIXEL_FORMAT_NV12
2-plane YUV 4:2:0 format.
Definition display.h:296
@ DISPLAY_ORIENTATION_ROTATED_90
Rotated 90 degrees clockwise.
Definition display.h:358
@ DISPLAY_ORIENTATION_ROTATED_180
Rotated 180 degrees clockwise.
Definition display.h:359
@ DISPLAY_ORIENTATION_NORMAL
No rotation.
Definition display.h:357
@ DISPLAY_ORIENTATION_ROTATED_270
Rotated 270 degrees clockwise.
Definition display.h:360
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
#define EINVAL
Invalid argument.
Definition errno.h:61
#define ENOSYS
Function not implemented.
Definition errno.h:83
Devicetree pixel format identifiers for display panels.
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT64_TYPE__ uint64_t
Definition stdint.h:91
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
void * memset(void *buf, int c, size_t n)
Runtime device structure (in ROM) per driver instance.
Definition device.h:543
Structure to describe display data buffer layout.
Definition display.h:430
uint16_t pitch
Number of pixels between consecutive rows in the data buffer.
Definition display.h:438
bool frame_incomplete
Indicates that this is not the last write buffer of the frame.
Definition display.h:440
uint16_t height
Data buffer column height in pixels.
Definition display.h:436
uint16_t width
Data buffer row width in pixels.
Definition display.h:434
uint32_t buf_size
Data buffer size in bytes.
Definition display.h:432
Structure holding display capabilities.
Definition display.h:380
uint32_t supported_pixel_formats
Bitwise or of pixel formats supported by the display.
Definition display.h:386
uint16_t x_resolution
Display resolution in the X direction.
Definition display.h:382
uint32_t supported_events
Supported callback events mask, 0 when event callback unsupported.
Definition display.h:394
enum display_orientation current_orientation
Current display orientation.
Definition display.h:392
uint16_t y_resolution
Display resolution in the Y direction.
Definition display.h:384
uint32_t screen_info
Information about display panel.
Definition display.h:388
struct display_palette_color color_palette[CONFIG_DISPLAY_COLOR_PALETTE_MAX_SIZE]
Color palette supported by the display, indexed by pixel value.
Definition display.h:397
enum display_pixel_format current_pixel_format
Currently active pixel format for the display.
Definition display.h:390
<span class="mlabel">Driver Operations</span> Display driver operations
Definition display.h:619
display_blanking_off_api blanking_off
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:627
display_register_event_cb_api register_event_cb
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:675
display_set_pixel_format_api set_pixel_format
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:659
display_read_api read
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:635
display_set_orientation_api set_orientation
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:663
display_write_api write
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition display.h:631
display_set_timing_api set_timing
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:667
display_get_timing_api get_timing
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:671
display_unregister_event_cb_api unregister_event_cb
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:679
display_clear_api clear
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:639
display_set_brightness_api set_brightness
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:647
display_get_framebuffer_api get_framebuffer
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:643
display_blanking_on_api blanking_on
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:623
display_get_capabilities_api get_capabilities
<span class="op-badge op-req" title="This operation MUST be implemented by the driver....
Definition display.h:655
display_set_contrast_api set_contrast
<span class="op-badge op-opt" title="This operation MAY optionally be implemented by the driver....
Definition display.h:651
Display event payload.
Definition display.h:444
uint64_t timestamp
Timestamp to differentiate between events of the same type.
Definition display.h:448
union display_event_data::@254130275177060223307037326371161170306162100075 info
Event info passed by driver to callback.
int buffer_id
For DISPLAY_EVENT_FRAME_DONE events, set to -1 if unavailable.
Definition display.h:454
int line
For DISPLAY_EVENT_LINE_INT events, set to -1 if unavailable.
Definition display.h:452
Structure representing a color palette entry in ARGB8888 format.
Definition display.h:366
uint8_t r
Red component (0-255).
Definition display.h:372
uint8_t b
Blue component (0-255).
Definition display.h:368
uint8_t a
Alpha component (0-255).
Definition display.h:374
uint8_t g
Green component (0-255).
Definition display.h:370
Structure holding display timings.
Definition display.h:402
bool de_active
Data enable active high.
Definition display.h:424
uint32_t vsync_len
Vertical sync length.
Definition display.h:414
uint32_t hback_porch
Horizontal back porch.
Definition display.h:412
uint32_t vback_porch
Vertical back porch.
Definition display.h:418
bool vsync_active
Vertical sync active high.
Definition display.h:422
bool pixelclk_active
Pixel clock active high.
Definition display.h:426
uint32_t vactive
Vertical active video.
Definition display.h:406
uint32_t hsync_len
Horizontal sync length.
Definition display.h:408
uint32_t vfront_porch
Vertical front porch.
Definition display.h:416
uint32_t hactive
Horizontal active video.
Definition display.h:404
bool hsync_active
Horizontal sync active high.
Definition display.h:420
uint32_t hfront_porch
Horizontal front porch.
Definition display.h:410