S32 SDK
erm_driver.h File Reference
#include "device_registers.h"
#include "status.h"

Go to the source code of this file.

Data Structures

struct  erm_interrupt_config_t
 ERM interrupt notification configuration structure Implements : erm_interrupt_config_t_Class. More...
 
struct  erm_user_config_t
 ERM user configuration structure Implements : erm_user_config_t_Class. More...
 

Enumerations

enum  erm_ecc_event_t { ERM_EVENT_NONE = 0U, ERM_EVENT_SINGLE_BIT = 1U, ERM_EVENT_NON_CORRECTABLE = 2U }
 ERM types of ECC events Implements : erm_ecc_event_t_Class. More...
 

Functions

ERM DRIVER API
void ERM_DRV_Init (uint32_t instance, uint8_t channelCnt, const erm_user_config_t *userConfigArr)
 Initializes the ERM module. More...
 
void ERM_DRV_Deinit (uint32_t instance)
 Sets the default configuration. More...
 
void ERM_DRV_SetInterruptConfig (uint32_t instance, uint8_t channel, erm_interrupt_config_t interruptCfg)
 Sets interrupt notification. More...
 
void ERM_DRV_GetInterruptConfig (uint32_t instance, uint8_t channel, erm_interrupt_config_t *const interruptPtr)
 Gets interrupt notification. More...
 
void ERM_DRV_ClearEvent (uint32_t instance, uint8_t channel, erm_ecc_event_t eccEvent)
 Clears error event and the corresponding interrupt notification. More...
 
erm_ecc_event_t ERM_DRV_GetErrorDetail (uint32_t instance, uint8_t channel, uint32_t *addressPtr)
 Gets the address of the last ECC event in Memory n and ECC event. More...