Error Log (ERRLOG) peripheral driver.
More...
Error Log (ERRLOG) peripheral driver.
◆ npmx_errlog_scratch_t
Available scratch registers.
Enumerator |
---|
NPMX_ERRLOG_SCRATCH0 | Scratch 0 register.
|
NPMX_ERRLOG_SCRATCH1 | Scratch 1 register.
|
NPMX_ERRLOG_SCRATCH_COUNT | Scratch registers count.
|
NPMX_ERRLOG_SCRATCH_INVALID | Invalid scratch register.
|
◆ npmx_errlog_task_t
Error log tasks.
Enumerator |
---|
NPMX_ERRLOG_TASK_CLEAR | Clear all error log registers.
|
NPMX_ERRLOG_TASK_COUNT | Error log tasks count.
|
◆ npmx_errlog_boot_timer_enable_get()
Function checking whether boot monitor timer is enabled.
- Parameters
-
[in] | p_instance | Pointer to the instance of error log. |
[out] | p_enable | Pointer to the boot monitor timer variable. True if timer is enabled, false otherwise. |
- Return values
-
NPMX_SUCCESS | Operation performed successfully. |
NPMX_ERROR_IO | Error using IO bus line. |
◆ npmx_errlog_boot_timer_enable_set()
Function for enabling or disabling boot monitor timer.
- Parameters
-
[in] | p_instance | Pointer to the instance of error log. |
[in] | enable | True if boot monitor is to be enabled, false otherwise. |
- Return values
-
NPMX_SUCCESS | Operation performed successfully. |
NPMX_ERROR_IO | Error using IO bus line. |
◆ npmx_errlog_get()
Function for returning error log instance based on index.
- Parameters
-
[in] | p_pmic | Pointer to the PMIC instance. |
[in] | idx | Index of the error log instance. |
- Returns
- Pointer to the error log instance.
◆ npmx_errlog_reset_errors_check()
Function for checking reset errors and running registered callbacks.
- Parameters
-
[in] | p_instance | Pointer to the instance of error log. |
- Return values
-
NPMX_SUCCESS | Operation performed successfully. |
NPMX_ERROR_IO | Error using IO bus line. |
◆ npmx_errlog_scratch_get()
Function for reading scratch value for specified scratch register.
- Parameters
-
[in] | p_instance | Pointer to the instance of error log. |
[in] | scratch | Selected scratch register. |
[out] | p_value | Pointer to value OF variable. |
- Return values
-
NPMX_SUCCESS | Operation performed successfully. |
NPMX_ERROR_IO | Error using IO bus line. |
◆ npmx_errlog_scratch_set()
Function for setting scratch value for specified scratch register.
- Note
- This function must not be used after calling npmx_core_init function with the restore_values parameter selected as true.
- Parameters
-
[in] | p_instance | Pointer to the instance of error log. |
[in] | scratch | Selected scratch register. |
[in] | value | Scratch register value to be saved. |
- Return values
-
NPMX_SUCCESS | Operation performed successfully. |
NPMX_ERROR_IO | Error using IO bus line. |
◆ npmx_errlog_task_trigger()
Function for activating the specified error log task.
- Parameters
-
[in] | p_instance | Pointer to the instance of error log. |
[in] | task | Task to be activated. |
- Return values
-
NPMX_SUCCESS | Operation performed successfully. |
NPMX_ERROR_IO | Error using IO bus line. |