S32 SDK
erm_hal.h File Reference
#include <stddef.h>
#include <stdbool.h>
#include "device_registers.h"

Go to the source code of this file.

Macros

#define ERM_CHANNELS_OFFSET_SIZE   (4U)
 The distance between channels. More...
 
#define ERM_NCE_START   (30U)
 Start bit of non correctable error. More...
 
#define ERM_SBC_START   (31U)
 Start bit of single bit correction. 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 HAL API
void ERM_HAL_Init (ERM_Type *const base)
 Initializes the ERM module. More...
 
static void ERM_HAL_EnableEventInterrupt (ERM_Type *const base, uint8_t channel, erm_ecc_event_t eccEvent, bool enable)
 Enables Memory n interrupt event. More...
 
static bool ERM_HAL_IsEventInterruptEnabled (const ERM_Type *const base, uint8_t channel, erm_ecc_event_t eccEvent)
 Checks if the Memory n interrupt event is enabled. More...
 
static bool ERM_HAL_IsEventDetected (const ERM_Type *const base, uint8_t channel, erm_ecc_event_t eccEvent)
 Checks if the Memory n error event is detected. More...
 
static void ERM_HAL_ClearEvent (ERM_Type *const base, uint8_t channel, erm_ecc_event_t eccEvent)
 Clears error event and the corresponding interrupt notification. More...
 
static uint32_t ERM_HAL_GetLastErrorAddress (const ERM_Type *const base, uint8_t channel)
 Gets the address of the last ECC event in Memory n. More...
 
erm_ecc_event_t ERM_HAL_GetErrorDetail (const ERM_Type *const base, uint8_t channel, uint32_t *addressPtr)
 Gets the address of the last ECC event in Memory n and ECC event. More...