Instruction Manual
UG_6612_036 78M6612 M-API Library User Guide
Rev. 1.00 23
4.3 CE and MPU Control
4.3.1 MAPI_CEOn()
Purpose Turn CE on. After calling MAPI_Init(), CE is automatically turned on. This
API is provided as a convenience for the Application level to control the CE,
especially when reading/writing to Flash is necessary (writing to Flash is not
allowed when CE is on).
Synopsis void MAPI_CEOn ( void );
Parameters None.
Return Codes None.
4.3.2 MAPI_CEOff()
Purpose Turn CE off. When writing to flash, the CE must be turned off. This API is
necessary with MAPI_UpdateCE, MAPI_UpdateMPU or memcpy_rx calls.
Synopsis void MAPI_CEOff ( void );
Parameters None.
Return Codes None.
4.3.3 MAPI_GetCEName()
Purpose Get the CE name embedded as part of the CE data. The CE name size is 24
bytes and these exact 24 bytes will be returned in the XDATA string pointed to by
ptr.
Synopsis void MAPI_GetCEName ( unsigned char xdata *ptr );
Parameters ptr Output parameter.
The CE name will be returned at the xdata location pointed to by
ptr. For version 2.00 Library release, the string will look as follows:
CE6612_OMU_S2+2_A01_V1_4.
Return Codes None.
4.3.4 MAPI_SoftReset()
Purpose Reset the MPU, this includes stopping the CE, and setting all registers to
hardware Power-On Reset values.
Synopsis void MAPI_SoftReset ( Void );
Parameters None.
Return Codes None.