beautypg.com

5 mapi_hardreset(), 6 mapi_updatempu(), 7 mapi_updatece() – Maxim Integrated 78M6612 M-API Library User Manual

Page 24: Mapi_hardreset(), Mapi_updatempu(), Mapi_updatece()

background image

78M6612 M-API Library User Guide

UG_6612_036

24

Rev. 1.00

4.3.5 MAPI_HardReset()

Purpose

Reset the MPU, this includes stopping the CE, and setting all registers to
hardware Power-On Reset values.

Synopsis

void MAPI_HardReset ( Void );

Parameters

None.

Return Codes None.

4.3.6 MAPI_UpdateMPU()

Purpose Update the MPU contents permanently into Flash. The MPU measurement input

and calibration default values are stored in Flash. During power up, its content is
copied to XRAM to be used as a working copy. The application can change
some of the registers’ values using the MAPI_SetGetRegister(). This
change only takes effect in the XRAM copy of the data. To permanently save the
new data into Flash, the application must exclusively call this function to perform
the permanent save. This function is not to, and should not, be called too often
as Flash Write does have a life-expectancy. It is typically used after the part is
calibrated successfully to save the coefficient values. See the
OMU_MAPICLI.uproj for sample usage of this API. In order for this function to
perform properly, the CE must be turned off by calling MAPI_CEOff().

Synopsis Bool MAPI_UpdateMPU ( void );

Parameters none


Return Codes TRUE – Successful write of MPU data to Flash.

FALSE – Write was not successful; perhaps CE is still running.

4.3.7 MAPI_UpdateCE()

Purpose Update the CE Data contents permanently into Flash. The CE Data Image is

programmed into Flash, starting at address 0x775E. During power up, its
content is copied to XRAM to be used as a working copy. Though it is NOT
recommended to change any CE Data, occasionally such needs arise, such as
changing the IMAX, VMAX or WRATE values. The application can change some
of the registers’ values using the MAPI_SetGetRegister(). This change only
takes effect in the XRAM copy of the data. To permanently save the data into
Flash, the application must exclusively call this function to perform the permanent
save into its specific location of Flash. This function is not, and should not, be
called too often as Flash Write does have a life-expectancy. See the
OMU_MAPICLI.uproj for sample usage of this API. In order for this function to
perform properly, the CE must be turned off by calling MAPI_CEOff().

Synopsis Bool MAPI_UpdateCE ( void );

Parameters None.

Return Codes TRUE – Successful write of MPU data to Flash.

FALSE – Write was not successful; perhaps CE is still running.