Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
106
11.5.5.6 MM_ERROR mmlGdcDispOpenDisplay ( MML_GDC_DISP_PROPERTIES
∗
mode,
MML_GDC_DISPLAY
∗
display )
Used to open a display. By default this function is blocked until previous operations of device display are completely
executed. Use mmlGdcConfigSetAttribute(), set MML_GDC_CONFIG_ATTR_DISPLAY_NOBLOCK to 1 to make it
non-blocking.
Note:
This function must only be called once for each display output controller.
Parameters
in
mode
MML_GDC_DISP_PROPERTIES structure describing the desired resolution and display
timings.
out
display
On success will contain a valid MML_GDC_DISPLAY.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If an invalid argument was passed.
MML_ERR_GDC_DISP_DISPLAY_ALREADY_OPEN
If the display is already opened.
MML_ERR_GDC_DISP_DEV_BUSY
If the writing to the device display is denied, because
the previous close call is not
completely executed (e.g., shadow load request is
pending). Call again later!
11.5.5.7 MM_ERROR mmlGdcDispSetAttribute ( MML_GDC_DISPLAY display,
MML_GDC_DISP_ATTR pname, MM_U32 param )
Sets the attribute pname to param. display specify for which display controller the attribute should be set.
Note
This setting will not be active immediately. Use mmlGdcDispCommit to submit for processing.
Parameters
in
display
An MML_GDC_DISPLAY returned from a previous call to mmlGdcDispOpenDisplay().
in
pname
Parameter name. See MML_GDC_DISP_ATTR for valid values.
in
param
Value to set for parameter pname.
Return values
MML_OK
On success.
MML_ERR_GDC_DISP_INVALID_ARG
If one of the parameters is invalid.