1.30.10.5 NVMCTRL_ErrorGet Function

C

The prototype of NVMCTRL_ErrorGet() varies based on device family. Refer to the generated header file for the actual prototype to be used.

NVMCTRL_ERROR NVMCTRL_ErrorGet( void );

uint16_t NVMCTRL_ErrorGet( void );

Summary

Returns the error state of NVM controller.

Description

This function returns the error status of the last NVMCTRL operation. The return value can be either None, a single error or a combination of multiple error conditions.

Precondition

None.

Parameters

None

Returns

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

Example

uint16_t nvm_error = 0;

nvm_error = NVMCTRL_ErrorGet();

Remarks

None.