![]() |
Synergy Software Package User's Manual
|
GUIX adaptation layer. More...
Data Structures | |
| struct | sf_el_gx_instance_ctrl_t |
Functions | |
| ssp_err_t | SF_EL_GX_Open (sf_el_gx_ctrl_t *const p_api_ctrl, sf_el_gx_cfg_t const *const p_cfg) |
| GUIX adaptation framework driver for Synergy, open function to configure the framework module. The function initialize RTOS resources used by the module, initialize the control block based on user configuration, and transition the module state to SF_EL_GX_OPENED. This function calls following functions: More... | |
| ssp_err_t | SF_EL_GX_Close (sf_el_gx_ctrl_t *const p_api_ctrl) |
| GUIX adaptation framework for Synergy, Close function. This function calls following functions: More... | |
| ssp_err_t | SF_EL_GX_VersionGet (ssp_version_t *p_version) |
| GUIX adaptation framework for Synergy, Version get function. More... | |
| UINT | SF_EL_GX_Setup (GX_DISPLAY *p_display) |
| GUIX adaptation framework for Synergy, Setup GUIX low level device drivers for Display and D/AVE 2D interface. This function has to be passed to the GUIX Studio display driver setup function gx_studio_display_configure() to let GUIX call this function and configure the GUIX low level device driver(s). This function calls following functions: More... | |
| ssp_err_t | SF_EL_GX_CanvasInit (sf_el_gx_ctrl_t *const p_api_ctrl, GX_WINDOW_ROOT *p_window_root) |
| GUIX adaptation framework for Synergy, Canvas initialization, setup the memory address of first canvas to be rendered. More... | |
GUIX adaptation layer.
| ssp_err_t SF_EL_GX_CanvasInit | ( | sf_el_gx_ctrl_t *const | p_api_ctrl, |
| GX_WINDOW_ROOT * | p_window_root | ||
| ) |
GUIX adaptation framework for Synergy, Canvas initialization, setup the memory address of first canvas to be rendered.
| SSP_SUCCESS | Memory address is successfully configured to a canvas. |
| SSP_ERR_ASSERTION | Invalid control block (NULL pointer) or window root (NULL pointer) passed to driver. |
| SSP_ERR_INVALID_CALL | Function call was made when the driver is not in SF_EL_GX_CONFIGURED state. |
| SSP_ERR_INTERNAL | Mutex operation had an error. |
Locks the driver to update the context.
Lets GUIX know the first canvas
Unlocks the driver.
| ssp_err_t SF_EL_GX_Close | ( | sf_el_gx_ctrl_t *const | p_api_ctrl | ) |
GUIX adaptation framework for Synergy, Close function. This function calls following functions:
| SSP_SUCCESS | Closed the module successfully. |
| SSP_ERR_ASSERTION | NULL pointer error happens. |
| SSP_ERR_NOT_OPEN | SF_EL_GX is not opened. |
Finalizes display hardware
Changes the driver state
Deletes a semaphore for frame buffer flip
Deletes driver global mutex
Clears the temporary storage for the pointer to a control block. This procedure has done in SF_EL_GX_Setup() in the expected function call sequence, but clear it here as well in case SF_EL_GX_Setup() being not called.
| ssp_err_t SF_EL_GX_Open | ( | sf_el_gx_ctrl_t *const | p_api_ctrl, |
| sf_el_gx_cfg_t const *const | p_cfg | ||
| ) |
GUIX adaptation framework driver for Synergy, open function to configure the framework module. The function initialize RTOS resources used by the module, initialize the control block based on user configuration, and transition the module state to SF_EL_GX_OPENED. This function calls following functions:
| SSP_SUCCESS | Opened the module successfully. |
| SSP_ERR_ASSERTION | NULL pointer error happened. |
| SSP_ERR_IN_USE | SF_EL_GX is in-use. |
| SSP_ERR_INTERNAL | Error happened in kernel service calls. |
| SSP_ERR_INVALID_ARGUMENT | An invalid argument was passed to the driver. |
Creates global mutex for SF_EL_GX to protect access to the control structure and GUIX low level device drivers setup.
Locks the SF_EL_GX instance until driver setup is done by SF_EL_GX_Setup().
Creates a semaphore for frame buffer flip
Initializes the SF_EL_GX control block
Saves the control block to the global pointer inside the module temporarily. Stored data will be used in sf_el_gx_driver_setup() which will be invoked by GUIX. This pointer will be valid at last but be protected until SF_EL_GX_Setup() is done.
Changes the driver state
| UINT SF_EL_GX_Setup | ( | GX_DISPLAY * | p_display | ) |
GUIX adaptation framework for Synergy, Setup GUIX low level device drivers for Display and D/AVE 2D interface. This function has to be passed to the GUIX Studio display driver setup function gx_studio_display_configure() to let GUIX call this function and configure the GUIX low level device driver(s). This function calls following functions:
| GX_SUCCESS | Device driver setup is successfully done. |
| GX_FAILURE | Device driver setup failed. |
Copies the GX_DISPLAY context for later use.
Setups GUIX low level device drivers
Changes the driver state
Clears the temporary storage for the pointer to a control block.
Unlocks the SF_EL_GX instance since driver setup is done
| ssp_err_t SF_EL_GX_VersionGet | ( | ssp_version_t * | p_version | ) |
GUIX adaptation framework for Synergy, Version get function.
| [in,out] | p_version | The version number. |
| SSP_SUCCESS | Successfully returned the module version. |
| SSP_ERR_ASSERTION | NULL pointer is passed to function. |