Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
94
Window Functions
MM_ERROR mmlGdcDispWinCreate (MML_GDC_DISPLAY display,
MML_GDC_DISP_WINDOW_PROPERTIES *properties, MML_GDC_DISP_WINDOW *pWin)
MM_ERROR mmlGdcDispWinDestroy (MML_GDC_DISP_WINDOW win)
MM_ERROR mmlGdcDispWinSetSurface (MML_GDC_DISP_WINDOW win, MM_U32 target,
MML_GDC_SURFACE surf)
MM_ERROR mmlGdcDispWinSetBlendMode (MML_GDC_DISP_WINDOW win, MM_U32 blend_mode)
MM_ERROR mmlGdcDispWinSetMatrix (MML_GDC_DISP_WINDOW win, MM_U32 target, const MM_FLOAT
*matrix)
MM_ERROR mmlGdcDispWinSync (MML_GDC_DISP_WINDOW win, MML_GDC_SYNC sync)
MM_ERROR mmlGdcDispWinWaitSync (MML_GDC_DISP_WINDOW win, MML_GDC_SYNC sync)
MM_ERROR mmlGdcDispWinSetAttribute (MML_GDC_DISP_WINDOW win, MML_GDC_DISP_WIN_ATTR
pname, MM_U32 param)
MM_ERROR mmlGdcDispWinGetAttribute (MML_GDC_DISP_WINDOW win, MML_GDC_DISP_WIN_ATTR
pname, MM_U32 *pParam)
MM_ERROR mmlGdcDispWinCommit (MML_GDC_DISP_WINDOW win)
11.5.1 Detailed Description
The Display API exposes all the hardware features of the display unit. See also Display Overview.
#include "mml_gdc_display.h"
The software interface provides 2 objects required to use and control the display unit:
The MML_GDC_DISPLAY is a software handle for a hardware display controller and is required to
Set up video modes.
Configure dithering or gamma correction.
The MML_GDC_DISP_WINDOW is the software handle for hardware layers and is required
To use hardware layers to show rendered content.
To configure blending and transparency of layers.
For synchronization between layers and other hardware components.
The following example demonstrates the steps to show an image on Display 0:
// Use default initializer for the properties and change later the important fields.
MML_GDC_DISP_PROPERTIES dispProp = MML_GDC_DISP_PROPERTIES_INITIALIZER;
MML_GDC_DISP_WINDOW_PROPERTIES windowProp =
MML_GDC_DISP_WINDOW_PROPERTIES_INITIALIZER;
MML_GDC_DISPLAY display;
MML_GDC_DISP_WINDOW win;
MML_GDC_SURFACE target;
// Set your requested display properties.
dispProp.outputController= MML_GDC_DISP_CONTROLLER_0;
dispProp.xResolution
= 640;
dispProp.yResolution = 480;
// Open the display