Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
140
11.9 Error Reporting API
Error Reporting API - Error Reporting for selected modules and level.
Typedefs
typedef void MM_PRINTFUNCTION (const char
∗
string)
Enumerations
enum MM_ERP_MESSAGE_LEVEL {
MM_ERP_LEVEL_NOTHING = 0U,
MM_ERP_LEVEL_ERROR,
MM_ERP_LEVEL_WARNING, MM_ERP_LEVEL_INFO
}
enum MM_ERP_MESSAGE_CHANNEL_PROP {
MM_ERP_CH_OFF = 0U,
MM_ERP_CH_ON
}
enum MM_ERP_MESSAGE_DEST {
MM_ERP_CH_STDOUT = 0U,
MM_ERP_CH_BUFFER
}
Functions
MM_ERROR mmlGdcErpSetMessageLevel (MM_U32 moduleId, MM_ERP_MESSAGE_LEVEL level)
MM_ERROR mmlGdcErpSetMessageChannel (MM_ERP_MESSAGE_DEST dest,
MM_ERP_MESSAGE_CHANNEL_PROP prop)
MM_ERROR mmlGdcErpSetBuffer (MM_ADDR bufferAddr, MM_U32 bufferSize)
MM_ERROR mmlGdcErpSetPrintf (MM_PRINTFUNCTION
∗
user_print_function)
Module Id’s
(The error reporting level can be set per module id)
Note:
kernel modules are covered by the corresponding user module
#define MM_ERP_MODULE_ID_GDC_ALL_USER MM_MODULEID(0x2100FFFFU)
#define MM_ERP_MODULE_ID_GDC_SURFMAN_USER MM_MODULEID(0x21000000U)
#define MM_ERP_MODULE_ID_GDC_DISP_USER MM_MODULEID(0x21001000U)
#define MM_ERP_MODULE_ID_GDC_IRIS_USER MM_MODULEID(0x21003000U)
#define MM_ERP_MODULE_ID_GDC_SYNC_USER MM_MODULEID(0x21005000U)
#define MM_ERP_MODULE_ID_GDC_CARD_USER MM_MODULEID(0x21006000U)
#define MM_ERP_MODULE_ID_GDC_CONFIG_USER MM_MODULEID(0x21007000U)
#define MM_ERP_MODULE_ID_GDC_SYSINIT_USER MM_MODULEID(0x21008000U)
#define MM_ERP_MODULE_ID_GDC_CMDSEQ_USER MM_MODULEID(0x21009000U)
#define MM_ERP_MODULE_ID_GDC_PIXENG_USER MM_MODULEID(0x2100B000U)
#define MM_ERP_MODULE_ID_GDC_ERP_USER MM_MODULEID(0x2100D000U)
#define MM_ERP_MODULE_ID_GDC_SERVICE_USER MM_MODULEID(0x2100E000U)