CRT Controller settings
#include <mode.h>
typedef struct disp_crtc_settings {
short xres;
short yres;
short refresh;
unsigned pixel_clock;
uint8_t sync_polarity;
uint8_t h_granularity;
uint8_t v_granularity;
short h_total;
short h_blank_start;
short h_blank_len;
short h_sync_start;
short h_sync_len;
short v_total;
short v_blank_start;
short v_blank_len;
short v_sync_start;
short v_sync_len;
unsigned flags;
} disp_crtc_settings_t;
The disp_crtc_settings_t structure contains the CRT Controller (CRTC) settings.
These members are used in conjunction with generic modes only (with the
refresh member applicable to both generic and fixed modes):
For more information, see the get_modelist() function in the description of disp_modefuncs_t. |
The members include:
Or, you can use the following manifest constants (composed of the bits from the above):
Photon