Go to the documentation of this file.
27 #define HAL_GDC_CFG_LAYER_EXISTS(i) (1U << (8 + (i)*4))
28 #define HAL_GDC_CFG_LAYER_BLENDER(i) (1U << (8 + (i)*4 + 1))
29 #define HAL_GDC_CFG_LAYER_SCALER(i) (1U << (8 + (i)*4 + 2))
30 #define HAL_GDC_CFG_LAYER_GAMMA(i) (1U << (8 + (i)*4 + 3))
32 #define HAL_GDC_LAYER_ENABLE (1U << 31)
33 #define HAL_GDC_ENABLE (1U << 31)
34 #define HAL_GDC_CFG_L3_YUVMEM (1U << 31)
35 #define HAL_GDC_EN_L3PIX (1U << 31)
36 #define DC_STATUS_rsrvd_0 (1U << 31)
37 #define hal_gdc_clkctrl_cg_l3_bus_clk (1U << 31)
397 void hal_gdc_timing(
int resx,
int fpx,
int blx,
int bpx,
int resy,
int fpy,
int bly,
int bpy);
@ HAL_GDC_CFG_PROGR_CURSOR
void hal_gdc_cursor_xy(int x, int y)
Set the location of the cursor.
@ hal_gdc_clkctrl_cg_rsrvd_8
@ hal_gdc_clkctrl_cg_rsrvd_19
int hal_gdc_init(void)
Initialize hal_gdc library.
@ hal_gdc_clkctrl_cg_rsrvd_15
hal_gdc_blend_mode_t
Layer blending mode definition.
@ hal_gdc_clkctrl_cg_rsrvd_13
void hal_gdc_set_cursor_img(unsigned char *img)
Set programmable cursor image (32x32 pixels)
Display parameters definition.
@ hal_gdc_clkctrl_cg_l2_pix_clk
uint32_t hal_gdc_get_crc(void)
Read CRC Checksum Register.
uint32_t hal_gdc_get_config(void)
Read Configuration Register.
hal_gdc_videomode_t
Layer video mode definition.
@ hal_gdc_clkctrl_cg_bypass_clk
hal_gdc_config_t
Layer configuration definition.
@ DC_STATUS_dbi_cmd_ready
@ hal_gdc_clkctrl_cg_l1_pix_clk
hal_gdc_format_t
Layer color mode definition.
uint32_t hal_gdc_get_col_mode(void)
Read Color Mode Register.
@ hal_gdc_clkctrl_cg_clk_en
void hal_gdc_clkdiv(int div, int div2, int dma_prefetch, int phase)
Set the built-in Clock Dividers and DMA Line Prefetch. (See Configuration Register 0x4)
@ hal_gdc_clkctrl_cg_l0_bus_clk
@ hal_gdc_clkctrl_cg_l0_pix_clk
int hal_gdc_stride_size(hal_gdc_format_t format, int width)
Get stride size in bytes.
hal_gdc_clkctrl_t
DC clock control definition.
@ hal_gdc_clkctrl_cg_rsrvd_20
@ hal_gdc_clkctrl_cg_rsrvd_12
void hal_gdc_request_vsync_non_blocking(void)
Request a VSync Interrupt without blocking.
@ hal_gdc_clkctrl_cg_regfil_clk
@ hal_gdc_clkctrl_cg_l2_bus_clk
Layer parameters definition.
@ hal_gdc_clkctrl_cg_rsrvd_16
hal_gdc_status_t
DC status definition.
void hal_gdc_set_bgcolor(uint32_t rgba)
Set hal_gdc Background Color.
@ hal_gdc_clkctrl_cg_rsrvd_14
@ hal_gdc_clkctrl_cg_rsrvd_5
@ hal_gdc_clkctrl_cg_rsrvd_6
@ hal_gdc_clkctrl_cg_rsrvd_3
void hal_gdc_set_layer_addr(int layer_no, uintptr_t addr)
Set the physical address of a layer.
@ hal_gdc_clkctrl_cg_rsrvd_17
@ DC_STATUS_dbi_pending_cmd
@ hal_gdc_clkctrl_cg_l1_bus_clk
@ hal_gdc_clkctrl_cg_rsrvd_10
int hal_gdc_get_palette(uint32_t index)
Reads an entry from the lut8 Palatte Gamma table.
void hal_gdc_timing(int resx, int fpx, int blx, int bpx, int resy, int fpy, int bly, int bpy)
Set Display timing parameters.
struct __hal_gdc_layer_t hal_gdc_layer_t
Layer parameters definition.
int hal_gdc_get_layer_count(void)
Get the number of layers available.
@ hal_gdc_clkctrl_cg_l3_pix_clk
void hal_gdc_set_cursor_lut(uint32_t index, uint32_t color)
Set a color for the Cursor LUT.
@ HAL_GDC_BF_INVSRCGBLALPHA
struct __hal_gdc_display_t hal_gdc_display_t
Display parameters definition.
uint32_t hal_gdc_get_status(void)
Get status from Status Register.
@ DC_STATUS_framegen_busy
@ hal_gdc_clkctrl_cg_rsrvd_18
void hal_gdc_set_layer(int layer_no, hal_gdc_layer_t *layer)
Set the Layer Mode. This function can enable a layer and set attributes to it.
@ hal_gdc_clkctrl_cg_clk_inv
void hal_gdc_layer_enable(int layer_no)
Enable layer.
void hal_gdc_clkctrl(hal_gdc_clkctrl_t ctrl)
Control the clock gaters.
void hal_gdc_layer_disable(int layer_no)
Disable layer.
@ hal_gdc_clkctrl_cg_clk_swap
void hal_gdc_cursor_enable(int enable)
Enable or Disable fixed cursor.
@ HAL_GDC_LAYER_GAMMALUT_EN
hal_gdc_clkctrl_cg_t
DC clock cg control definition.
hal_gdc_blend_factors_t
Layer blending factor definition.
@ DC_STATUS_dbi_pending_data
@ hal_gdc_clkctrl_cg_rsrvd_4
@ hal_gdc_clkctrl_cg_rsrvd_9
@ HAL_GDC_CFG_FIXED_CURSOR
@ DC_STATUS_dbi_pending_trans
int hal_gdc_get_layer_gamma_lut(int layer, int index)
Get an entry in the lut8 Palette Gamma table for a layer.
unsigned char hal_gdc_check_config(hal_gdc_config_t flag)
Check whether hal_gdc supports a specific characteristic.
void hal_gdc_set_layer_gamma_lut(int layer, int index, int colour)
Set the physical address of a layer.
@ hal_gdc_clkctrl_cg_rsrvd_21
hal_gdc_layer_ctrl_t
Layer control definition.
@ hal_gdc_clkctrl_cg_rsrvd_11
void hal_gdc_set_mode(int mode)
Set operation mode.
@ hal_gdc_clkctrl_cg_rsrvd_7
void hal_gdc_set_palette(uint32_t index, uint32_t colour)
Sets an entry in the lut8 Palatte Gamma table.