Retrieves the error code of the last issued NVM operation.
enum nvm_error nvm_get_error( void )
Retrieves the error code from the last executed NVM operation. Once retrieved, any error state flags in the controller are cleared.
Error caused by the last NVM operation.
| Return value | Description |
|---|---|
|
NVM_ERROR_NONE |
No error occurred in the last NVM operation |
|
NVM_ERROR_LOCK |
The last NVM operation attempted to access a locked region |
|
NVM_ERROR_PROG |
An invalid NVM command was issued |