PicoVGA  1.0-cmake
VGA/TV display on Raspberry Pico
sVmode Struct Reference

Videomode table - used to setup video driver. More...

#include <vga_vmode.h>

Data Fields

u16 width
 Screen width in pixels.
 
u16 height
 Screen height in lines.
 
u16 wfull
 Screen width of full screen (corresponding to 'hfull' time)
 
u16 wmax
 Screen maximal width (corresponding to 'hmax' time)
 
u32 freq
 system clock frequency in kHz
 
u32 vco
 VCO frequency in kHz.
 
u16 fbdiv
 fbdiv PLL divider
 
u8 pd1
 postdiv1
 
u8 pd2
 postdiv2
 
u16 div
 PIO divide base state machine clock.
 
u16 cpp
 State machine clocks per pixel.
 
u8 prog
 Layer program LAYERPROG_*.
 
u8 mode [LAYERS_MAX]
 mode of layer 0..3 LAYERMODE_* (LAYERMODE_BASE = layer is off or base layer)
 
u16 htot
 Total state machine clocks per line.
 
u16 hfront
 H front porch in state machine clocks (min. 2)
 
u16 hsync
 H sync pulse in state machine clocks (min. 4)
 
u16 hback
 H back porch in state machine clocks (min. 13)
 
float hfreq
 Horizontal frequency in [Hz].
 
u16 vtot
 Total scanlines (both sub-frames)
 
u16 vmax
 Maximal height.
 
float vfreq
 Vertical frequency in [Hz].
 
u16 vsync1
 V sync (half-)pulses on subframe 1.
 
u16 vpost1
 V sync post (half-)pulses on subframe 1.
 
u16 vback1
 V back porch (after VSYNC, before image) on subframe 1.
 
u16 vact1
 active visible scanlines, subframe 1
 
u16 vfront1
 V front porch (after image, before VSYNC) on subframe 1.
 
u16 vpre1
 V sync pre (half-)pulses on subframe 1.
 
u16 vfirst1
 first active scanline, subframe 1
 
u16 vsync2
 V sync half-pulses on subframe 2.
 
u16 vpost2
 V sync post half-pulses on subframe 2.
 
u16 vback2
 V back porch (after VSYNC, before image) on subframe 2.
 
u16 vact2
 active visible scanlines, subframe 2
 
u16 vfront2
 V front porch (after image, before VSYNC) on subframe 2.
 
u16 vpre2
 V sync pre half-pulses on subframe 2.
 
u16 vfirst2
 first active scanline, subframe 2
 
const char * name
 Video timing name (VIDEO_NAME_LEN characters + terminating 0)
 
bool lockfreq
 Lock current frequency, do not change it.
 
bool dbly
 Double scanlines.
 
bool inter
 Interlaced (use sub-frames)
 
bool psync
 Positive synchronization.
 
bool odd
 First sub-frame is odd lines 1, 3, 5,... (PAL)
 

Detailed Description

Videomode table - used to setup video driver.


The documentation for this struct was generated from the following file: