![]() |
Synergy Software Package User's Manual
|
Driver for the Graphics LCD Controller (GLCDC). More...
Data Structures | |
| struct | glcd_instance_ctrl_t |
| struct | glcd_cfg_t |
| struct | glcd_ctrl_t |
Functions | |
| ssp_err_t | R_GLCD_Open (display_ctrl_t *const p_api_ctrl, display_cfg_t const *const p_cfg) |
| Open GLCDC module. More... | |
| ssp_err_t | R_GLCD_Close (display_ctrl_t *const p_api_ctrl) |
| Close GLCDC module. More... | |
| ssp_err_t | R_GLCD_Start (display_ctrl_t *const p_api_ctrl) |
| Start GLCDC module. More... | |
| ssp_err_t | R_GLCD_Stop (display_ctrl_t *const p_api_ctrl) |
| Stop GLCDC module. More... | |
| ssp_err_t | R_GLCD_LayerChange (display_ctrl_t const *const p_api_ctrl, display_runtime_cfg_t const *const p_cfg, display_frame_layer_t frame) |
| Change layer parameters of GLCDC module at runtime. More... | |
| ssp_err_t | R_GLCD_ColorCorrection (display_ctrl_t const *const p_api_ctrl, display_correction_t const *const p_correction) |
| Perform color correction by GLCDC module. More... | |
| ssp_err_t | R_GLCD_ClutUpdate (display_ctrl_t const *const p_api_ctrl, display_clut_cfg_t const *const p_clut_cfg, display_frame_layer_t frame) |
| Update Color Look Up Table of GLCDC module. More... | |
| ssp_err_t | R_GLCD_StatusGet (display_ctrl_t const *const p_api_ctrl, display_status_t *const p_status) |
| Get status of GLCDC module. More... | |
| ssp_err_t | R_GLCD_VersionGet (ssp_version_t *p_version) |
| Get version of R_GLCDC module. More... | |
Driver for the Graphics LCD Controller (GLCDC).
Implements Display Interface. This module supports the Graphics LCD Controller (GLCDC). It implements the display interface and drives LCD panels connected to the GLCDC pins.
| enum glcd_clk_src_t |
| enum glcd_clut_plane_t |
Output interface format
Output interface format
| enum glcd_panel_clk_div_t |
Clock frequency division ratio
| enum glcd_tcon_pin_t |
| ssp_err_t R_GLCD_Close | ( | display_ctrl_t *const | p_api_ctrl | ) |
Close GLCDC module.
| SSP_SUCCESS | Device was closed successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block is NULL. |
| SSP_ERR_NOT_OPEN | The function call is performed when the driver state is not equal to DISPLAY_STATE_CLOSED. |
| SSP_ERR_INVALID_UPDATE_TIMING | A function call is performed when the GLCD is updating register values internally. |
Disable the GLCD interrupts
Reset the GLCD hardware
Halt the peripheral clock to the GLCD module
Unlock the GLCD resource
| ssp_err_t R_GLCD_ClutUpdate | ( | display_ctrl_t const *const | p_api_ctrl, |
| display_clut_cfg_t const *const | p_clut_cfg, | ||
| display_frame_layer_t | frame | ||
| ) |
Update Color Look Up Table of GLCDC module.
| SSP_SUCCESS | CLUT updated successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block or CLUT source data is NULL. |
| SSP_ERR_INVALID_CLUT_ACCESS | Illegal CLUT entry or size is specified. |
Check the CLUT table current used
Copy the new CLUT data on the source memory to the CLUT SRAM in the GLCD module
Make the GLCD module read the new CLUT table data from the next frame
| ssp_err_t R_GLCD_ColorCorrection | ( | display_ctrl_t const *const | p_api_ctrl, |
| display_correction_t const *const | p_correction | ||
| ) |
Perform color correction by GLCDC module.
| SSP_SUCCESS | Color correction by GLCDC module was performed successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block or the display correction structure is NULL. |
| SSP_ERR_INVALID_MODE | Function call is performed when the driver state is not DISPLAY_STATE_DISPLAYING. |
| SSP_ERR_INVALID_UPDATE_TIMING | A function call is performed while the GLCDC is updating registers internally. |
Configure the brightness and contrast correction register setting.
Update the Output block register setting.
| ssp_err_t R_GLCD_LayerChange | ( | display_ctrl_t const *const | p_api_ctrl, |
| display_runtime_cfg_t const *const | p_cfg, | ||
| display_frame_layer_t | frame | ||
| ) |
Change layer parameters of GLCDC module at runtime.
| SSP_SUCCESS | Changed layer parameters of GLCDC module successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block or the configuration structure is NULL. |
| SSP_ERR_INVALID_MODE | A function call is performed when the driver state is not DISPLAY_STATE_DISPLAYING. |
| SSP_ERR_INVALID_ARGUMENT | An invalid parameter is found in the argument. |
| SSP_ERR_INVALID_UPDATE_TIMING | A function call is performed while the GLCD is updating register values internally. |
Configure the graphics plane layers
Reflect the graphics module register value to the GLCD internal operations (at the timing of the next Vsync assertion)
| ssp_err_t R_GLCD_Open | ( | display_ctrl_t *const | p_api_ctrl, |
| display_cfg_t const *const | p_cfg | ||
| ) |
Open GLCDC module.
| SSP_SUCCESS | Device was opened successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block or the configuration structure is NULL. |
| SSP_ERR_INVALID_ARGUMENT | Invalid parameter in the argument. |
| SSP_ERR_HW_LOCKED | GLCDC resource is locked. |
| SSP_ERR_CLOCK_GENERATION | Dot clock cannot be generated from clock source. |
| SSP_ERR_INVALID_TIMING_SETTING | Invalid panel timing parameter. |
| SSP_ERR_INVALID_LAYER_SETTING | Invalid layer setting found. |
| SSP_ERR_INVALID_LAYER_FORMAT | Invalid format is specified. |
| SSP_ERR_INVALID_GAMMA_SETTING | Invalid gamma correction setting found. |
Lock the GLCD resource
Supply the peripheral clock to the GLCD module
Release GLCD from a SW reset status.
Set the dot clock frequency
Set the panel signal timing
Configure the background screen
Store back poach position to the control block (needed to define the layer blending position later)
Configure the graphics plane layers
Configure the output control block
Configure the color correction setting (brightness, brightness and gamma correction)
Change GLCD driver state
Save callback function
Save user defined context
Save the display interface context into GLCD HAL control block
Set the line number which is suppose to happen the line detect interrupt
| ssp_err_t R_GLCD_Start | ( | display_ctrl_t *const | p_api_ctrl | ) |
Start GLCDC module.
| SSP_SUCCESS | Device was started successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block is NULL. |
| SSP_ERR_INVALID_MODE | Function call is performed when the driver state is not DISPLAY_STATE_OPENED. |
Start to output the vertical and horizontal synchronization signals and screen data.
Enable Line detect function
| ssp_err_t R_GLCD_StatusGet | ( | display_ctrl_t const *const | p_api_ctrl, |
| display_status_t *const | p_status | ||
| ) |
Get status of GLCDC module.
| SSP_SUCCESS | Got status successfully. |
| SSP_ERR_ASSERTION | Pointer to the control block or the status structure is NULL. |
Return the GLCD HAL driver state
Return the fading status for the layers
| ssp_err_t R_GLCD_Stop | ( | display_ctrl_t *const | p_api_ctrl | ) |
Stop GLCDC module.
| SSP_SUCCESS | Device was stopped successfully |
| SSP_ERR_ASSERTION | Pointer to the control block is NULL |
| SSP_ERR_INVALID_MODE | Function call is performed when the driver state is not DISPLAY_STATE_DISPLAYING. |
| SSP_ERR_INVALID_UPDATE_TIMING | The function call is performed while the GLCD is updating register values internally. |
Stop outputting the vertical and horizontal synchronization signals and screen data.
| ssp_err_t R_GLCD_VersionGet | ( | ssp_version_t * | p_version | ) |
Get version of R_GLCDC module.
| p_version | The version number |
| SSP_SUCCESS | Version information available in p_version. |
| SSP_ERR_ASSERTION | NULL pointer is passed to function. |