Following section describes the functions available in graphics subsystem.
For GPU specific functions,Please refer to VGLite API Reference Manual
Display controller functionality is taken care with high level graphics API implementation. If user is looking for any specific functionality using direct display controller API directly, please refer to DPU API reference guide
Functions | |
| cy_en_gfx_status_t | Cy_GFXSS_Init (GFXSS_Type *base, cy_stc_gfx_config_t *config, cy_stc_gfx_context_t *context) |
| Initializes graphics pipeline. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_SleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
| Sleep callback implementation for graphics sub system. More... | |
| cy_en_syspm_status_t | Cy_GFXSS_DeepSleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
| Initializes graphics pipeline. More... | |
| void | Cy_GFXSS_Interrupt (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| The Interrupt Service Routine for the Graphics sub sytem. More... | |
| void | Cy_GFXSS_Clear_DC_Interrupt (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| The Interrupt Service Routine to clear Display Controller interrupts. More... | |
| void | Cy_GFXSS_Clear_GPU_Interrupt (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| The Interrupt Service Routine to clear GPU interrupts. More... | |
| __STATIC_INLINE uint32_t | Cy_GFXSS_Get_DC_Interrupt_Status (GFXSS_Type *base) |
| Gets Display Controller interrupt status. More... | |
| __STATIC_INLINE uint32_t | Cy_GFXSS_Get_GPU_Interrupt_Status (GFXSS_Type *base) |
| Gets GPU interrupt status. More... | |
| __STATIC_INLINE cy_en_gfx_rlad_status_t | Cy_GFXSS_Get_RLAD_Status (GFXSS_Type *base) |
| Gets RLAD decoder status within Display Controller. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Set_FrameBuffer (GFXSS_Type *base, uint32_t *gfx_layer_buffer, cy_stc_gfx_context_t *context) |
| Sets Video/Graphics layer buffer address. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Set_FrameBuffer_YUV (GFXSS_Type *base, uint32_t *y_buffer, uint32_t *uv_buffer, cy_stc_gfx_context_t *context) |
| Sets Video/Graphics layer YUV buffer addresses. More... | |
| uint32_t * | Cy_GFXSS_Get_FrameBufferAddress (GFXSS_Type *base) |
| Gets the video/graphics layer buffer address used for transferring frame through Display Controller. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Set_Overlay0 (GFXSS_Type *base, uint32_t *overlay0_buffer, cy_stc_gfx_context_t *context) |
| Sets Overlay0 buffer address. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Set_Overlay0_YUV (GFXSS_Type *base, uint32_t *y_buffer, uint32_t *uv_buffer, cy_stc_gfx_context_t *context) |
| Sets Overlay0 YUV buffer addresses. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Set_Overlay1 (GFXSS_Type *base, uint32_t *overlay1_buffer, cy_stc_gfx_context_t *context) |
| Sets Overlay1 buffer address. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Set_Layer_Enabled (GFXSS_Type *base, cy_en_gfx_layer_type_t layer_id, bool enable) |
| Enable/Disable the selected Layer. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_DeInit (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| DeInitializes graphics pipeline. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_RLAD_SetImage (GFXSS_Type *base, cy_stc_gfx_rlad_cfg_t *rlad_cfg, cy_stc_gfx_context_t *context) |
| Set image configuration for RLAD. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_RLAD_Enable (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| Enable RLAD in graphics pipeline. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_RLAD_Disable (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| Disable RLAD in graphics pipeline. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Enable_GPU (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| Enable GPU for composition. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Disable_GPU (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| Disable GPU and let Display controller refresh display based on already composed buffer stored in frame buffer address. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_Transfer_Frame (GFXSS_Type *base, cy_stc_gfx_context_t *context) |
| Transfer frame to display in DBI command mode. More... | |
| cy_en_gfx_status_t | Cy_GFXSS_TransferPartialFrame (GFXSS_Type *base, uint32_t start_line_offset, uint32_t end_line_offset, cy_stc_gfx_context_t *context) |
| Transfer partial frame to display in DBI command mode. More... | |
| __STATIC_INLINE void | Cy_GFXSS_Enable_GPU_Interrupt (GFXSS_Type *base) |
| Enables GPU interrupt. More... | |
| __STATIC_INLINE void | Cy_GFXSS_Disable_GPU_Interrupt (GFXSS_Type *base) |
| Disables GPU interrupt. More... | |
| cy_en_gfx_status_t Cy_GFXSS_Init | ( | GFXSS_Type * | base, |
| cy_stc_gfx_config_t * | config, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Initializes graphics pipeline.
| base | Pointer to the graphics sub system base address. |
| config | Pointer to the pin config structure base address. |
| context | context information used by the driver. |
< Display controller configuration
< GPU configuration is optional
< per lane speed in mbps
< MIPI DSI configuration
< device max DPHY clock in MHz unit
< Command mode/Video mode
< Additional mode information
< Display parameters
| cy_en_gfx_status_t Cy_GFXSS_SleepCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
| cy_en_syspm_callback_mode_t | mode | ||
| ) |
Sleep callback implementation for graphics sub system.
| *callbackParams | A cy_stc_syspm_callback_params_t structure with callback parameters that consists of mode, base and context fields: *base - a graphics register structure pointer. *context - context for the call-back function. mode
|
| mode | Callback mode, see cy_en_syspm_callback_mode_t |
| cy_en_syspm_status_t Cy_GFXSS_DeepSleepCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
| cy_en_syspm_callback_mode_t | mode | ||
| ) |
Initializes graphics pipeline.
| *callbackParams | A cy_stc_syspm_callback_params_t structure with callback parameters that consists of mode, base and context fields: *base - a graphics register structure pointer. *context - context for the call-back function. mode
|
| mode | Callback mode, see cy_en_syspm_callback_mode_t |
| void Cy_GFXSS_Interrupt | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
The Interrupt Service Routine for the Graphics sub sytem.
| base | Holds the base address of the Graphics block registers. |
| context | context information used by the driver. |
| void Cy_GFXSS_Clear_DC_Interrupt | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
The Interrupt Service Routine to clear Display Controller interrupts.
| base | Holds the base address of the Graphics block registers. |
| context | context information used by the driver. |
| void Cy_GFXSS_Clear_GPU_Interrupt | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
The Interrupt Service Routine to clear GPU interrupts.
| base | Holds the base address of the Graphics block registers. |
| context | context information used by the driver. |
| __STATIC_INLINE uint32_t Cy_GFXSS_Get_DC_Interrupt_Status | ( | GFXSS_Type * | base | ) |
Gets Display Controller interrupt status.
| base | Holds the base address of the Graphics block registers. |
| __STATIC_INLINE uint32_t Cy_GFXSS_Get_GPU_Interrupt_Status | ( | GFXSS_Type * | base | ) |
Gets GPU interrupt status.
| base | Holds the base address of the Graphics block registers. |
| __STATIC_INLINE cy_en_gfx_rlad_status_t Cy_GFXSS_Get_RLAD_Status | ( | GFXSS_Type * | base | ) |
Gets RLAD decoder status within Display Controller.
| base | Holds the base address of the Graphics block registers. |
| cy_en_gfx_status_t Cy_GFXSS_Set_FrameBuffer | ( | GFXSS_Type * | base, |
| uint32_t * | gfx_layer_buffer, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Sets Video/Graphics layer buffer address.
| base | Holds the base address of the Graphics block registers. |
| gfx_layer_buffer | Pointer to the frame buffer address to be used by Display Controller for transferring frame. |
| context | Pointer to the graphics config structure base address. |
| cy_en_gfx_status_t Cy_GFXSS_Set_FrameBuffer_YUV | ( | GFXSS_Type * | base, |
| uint32_t * | y_buffer, | ||
| uint32_t * | uv_buffer, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Sets Video/Graphics layer YUV buffer addresses.
| base | Holds the base address of the Graphics block registers. |
| y_buffer | Pointer to the Y buffer address to be used by Display Controller for transferring frame. |
| uv_buffer | Pointer to the UV buffer address to be used by Display Controller for transferring frame. |
| context | Pointer to the graphics config structure base address. |
| uint32_t * Cy_GFXSS_Get_FrameBufferAddress | ( | GFXSS_Type * | base | ) |
Gets the video/graphics layer buffer address used for transferring frame through Display Controller.
| cy_en_gfx_status_t Cy_GFXSS_Set_Overlay0 | ( | GFXSS_Type * | base, |
| uint32_t * | overlay0_buffer, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Sets Overlay0 buffer address.
| base | Holds the base address of the Graphics block registers. |
| overlay0_buffer | Pointer to the overlay0 buffer address to be used by Display Controller for transferring frame. |
| context | Pointer to the graphics config structure base address. |
| cy_en_gfx_status_t Cy_GFXSS_Set_Overlay0_YUV | ( | GFXSS_Type * | base, |
| uint32_t * | y_buffer, | ||
| uint32_t * | uv_buffer, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Sets Overlay0 YUV buffer addresses.
| base | Holds the base address of the Graphics block registers. |
| y_buffer | Pointer to the Y buffer address to be used by Display Controller for transferring frame. |
| uv_buffer | Pointer to the UV buffer address to be used by Display Controller for transferring frame. |
| context | Pointer to the graphics config structure base address. |
| cy_en_gfx_status_t Cy_GFXSS_Set_Overlay1 | ( | GFXSS_Type * | base, |
| uint32_t * | overlay1_buffer, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Sets Overlay1 buffer address.
| base | Holds the base address of the Graphics block registers. |
| overlay1_buffer | Pointer to the overlay1 buffer address to be used by Display Controller for transferring frame. |
| context | Pointer to the graphics config structure base address. |
| cy_en_gfx_status_t Cy_GFXSS_Set_Layer_Enabled | ( | GFXSS_Type * | base, |
| cy_en_gfx_layer_type_t | layer_id, | ||
| bool | enable | ||
| ) |
| cy_en_gfx_status_t Cy_GFXSS_DeInit | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
DeInitializes graphics pipeline.
| base | Holds the base address of the Graphics block registers. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_RLAD_SetImage | ( | GFXSS_Type * | base, |
| cy_stc_gfx_rlad_cfg_t * | rlad_cfg, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Set image configuration for RLAD.
| base | Pointer to the graphics sub system base address. |
| rlad_cfg | Pointer to the RLAD configuration structure. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_RLAD_Enable | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
Enable RLAD in graphics pipeline.
| base | Pointer to the graphics sub system base address. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_RLAD_Disable | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
Disable RLAD in graphics pipeline.
| base | Pointer to the graphics sub system base address. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_Enable_GPU | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
Enable GPU for composition.
| base | Pointer to the graphics sub system base address. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_Disable_GPU | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
Disable GPU and let Display controller refresh display based on already composed buffer stored in frame buffer address.
| base | Pointer to the graphics sub system base address. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_Transfer_Frame | ( | GFXSS_Type * | base, |
| cy_stc_gfx_context_t * | context | ||
| ) |
Transfer frame to display in DBI command mode.
| base | Pointer to the graphics sub system base address. |
| context | context information used by the driver. |
| cy_en_gfx_status_t Cy_GFXSS_TransferPartialFrame | ( | GFXSS_Type * | base, |
| uint32_t | start_line_offset, | ||
| uint32_t | end_line_offset, | ||
| cy_stc_gfx_context_t * | context | ||
| ) |
Transfer partial frame to display in DBI command mode.
| base | Pointer to the graphics sub system base address. |
| start_line_offset | Start line offset from the top of the frame buffer, beginning of partial frame. |
| end_line_offset | End line offset from the top of the frame buffer, end of partial frame. |
| context | context information used by the driver. |
| __STATIC_INLINE void Cy_GFXSS_Enable_GPU_Interrupt | ( | GFXSS_Type * | base | ) |
Enables GPU interrupt.
| base | Pointer to the graphics sub system base address. |
| __STATIC_INLINE void Cy_GFXSS_Disable_GPU_Interrupt | ( | GFXSS_Type * | base | ) |
Disables GPU interrupt.
| base | Pointer to the graphics sub system base address. |