Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
145
11.9.5.3 MM_ERROR mmlGdcErpSetMessageLevel ( MM_U32 moduleId,
MM_ERP_MESSAGE_LEVEL level )
Set level of error messages for an individual module. For example,
mmlGdcErpSetMessageLevel(MM_ERP_MODULE_ID_GDC_DISP_USER, MM_ERP_LEVEL_INFO);
will print all messages (info,warning,error) that come from the display module. The module IDs are defined for each
driver component (see Module Id’s).
Parameters
in
moduleId
Module ID selection.
MM_ERP_MODULE_ID_GDC_ALL_USER
MM_ERP_MODULE_ID_GDC_SURFMAN_USER
MM_ERP_MODULE_ID_GDC_DISP_USER
MM_ERP_MODULE_ID_GDC_IRIS_USER
MM_ERP_MODULE_ID_GDC_SYNC_USER
MM_ERP_MODULE_ID_GDC_CARD_USER
MM_ERP_MODULE_ID_GDC_CONFIG_USER
MM_ERP_MODULE_ID_GDC_SYSINIT_USER
MM_ERP_MODULE_ID_GDC_CMDSEQ_USER
MM_ERP_MODULE_ID_GDC_PIXENG_USER
MM_ERP_MODULE_ID_GDC_ERP_USER
MM_ERP_MODULE_ID_GDC_SERVICE_USER
in
level
Level selection:
MM_ERP_LEVEL_NOTHING No messages.
MM_ERP_LEVEL_ERROR All error messages.
MM_ERP_LEVEL_WARNING All error and warning messages.
MM_ERP_LEVEL_INFO All error, warning and info messages.
Return values
MML_OK
Normal termination.
MML_ERR_ERP_INVALID_PARAMETER
An invalid value is set in an argument.
11.9.5.4 MM_ERROR mmlGdcErpSetPrintf ( MM_PRINTFUNCTION
∗
user_print_function )
Set the print function that is used for the STDOUT channel.
Parameters
in
user_print_function
A Function of type MM_PRINTFUNCTION (function returning "void" of parameter
"const char
∗
string") that shall be used to "print" on STDOUT.
Note
This will be initialized to NULL (i.e., without setting this function, there will be no messages on STDOUT).
Return values
MML_OK
Normal termination.
MML_ERR_ERP_INVALID_PARAMETER
An invalid value is set in an argument.