1.22.16.7 NVM_ErrorGet Function

C

NVM_ERROR NVM_ErrorGet( void )

Summary

Returns the error state of NVM controller.

Description

This function returns the erorr status of the last NVM operation.

Precondition

None.

Parameters

None

Returns

Return NVM_ERROR type of value. In case of error, this value can be a combination of multiple and different error conditions.

Example

if(NVM_ErrorGet() != NVM_ERROR_NONE)
{
    // The error status can indicate multiple error conditions.
    if(NVM_ErrorGet() & (NVM_ERROR_WRITE | NVM_ERROR_LOWVOLTAGE))
    {
        // There are multiple error conditions.
    }
}

Remarks

None.