RTEMS 6.1-rc4
|
Data Structures | |
struct | _mecc_config |
MECC user configuration. More... | |
struct | _mecc_single_error_info |
MECC ocram single error information, including single error address, ECC code, error data and error bit position. More... | |
struct | _mecc_multi_error_info |
MECC ocram multiple error information, including multiple error address, ECC code, error data. More... | |
Initialization and deinitialization | |
void | MECC_Init (MECC_Type *base, mecc_config_t *config) |
MECC module initialization function. | |
void | MECC_Deinit (MECC_Type *base) |
Deinitializes the MECC. | |
void | MECC_GetDefaultConfig (mecc_config_t *config) |
Sets the MECC configuration structure to default values. | |
functional | |
status_t | MECC_ErrorInjection (MECC_Type *base, uint32_t lowerrordata, uint32_t higherrordata, uint8_t eccdata, uint8_t banknumber) |
MECC module error injection. | |
status_t | MECC_GetSingleErrorInfo (MECC_Type *base, mecc_single_error_info_t *info, uint8_t banknumber) |
MECC module get single error information. | |
status_t | MECC_GetMultiErrorInfo (MECC_Type *base, mecc_multi_error_info_t *info, uint8_t banknumber) |
MECC module get multiple error information. | |
anonymous enum |
MECC interrupt configuration structure, default settings all disabled.
This structure contains the settings for all of the MECC interrupt configurations.
anonymous enum |
MECC interrupt status configuration structure, default settings all disabled.
This structure contains the settings for all of the MECC interrupt status configurations.
anonymous enum |
MECC status flags.
This provides constants for the MECC status flags for use in the MECC functions.
anonymous enum |
MECC ocram bank number.
anonymous enum |
void MECC_Deinit | ( | MECC_Type * | base | ) |
Deinitializes the MECC.
base | MECC base address. |
brief Deinitializes the MECC.
status_t MECC_ErrorInjection | ( | MECC_Type * | base, |
uint32_t | lowerrordata, | ||
uint32_t | higherrordata, | ||
uint8_t | eccdata, | ||
uint8_t | banknumber | ||
) |
MECC module error injection.
base | MECC base address. |
lowerrordata | low 32 bits data. |
higherrordata | high 32 bits data. |
eccdata | ecc code. |
banknumber | ocram bank number. |
kStatus_Success. |
Bank0: ocram_base_address+0x20*i Bank1: ocram_base_address+0x20*i+0x8 Bank2: ocram_base_address+0x20*i+0x10 Bank3: ocram_base_address+0x20*i+0x18 i = 0,1,2,3,4.....
void MECC_GetDefaultConfig | ( | mecc_config_t * | config | ) |
Sets the MECC configuration structure to default values.
config | pointer to the MECC configuration structure. |
status_t MECC_GetMultiErrorInfo | ( | MECC_Type * | base, |
mecc_multi_error_info_t * | info, | ||
uint8_t | banknumber | ||
) |
MECC module get multiple error information.
base | MECC base address. |
info | multiple error information. |
banknumber | ocram bank number. |
kStatus_Success. | |
kStatus_MECC_BankMiss. |
Bank0: ocram_base_address+0x20*i Bank1: ocram_base_address+0x20*i+0x8 Bank2: ocram_base_address+0x20*i+0x10 Bank3: ocram_base_address+0x20*i+0x18 i = 0,1,2,3,4.....
status_t MECC_GetSingleErrorInfo | ( | MECC_Type * | base, |
mecc_single_error_info_t * | info, | ||
uint8_t | banknumber | ||
) |
MECC module get single error information.
base | MECC base address. |
info | single error information. |
banknumber | ocram bank number. |
kStatus_Success. | |
kStatus_MECC_BankMiss. |
Bank0: ocram_base_address+0x20*i Bank1: ocram_base_address+0x20*i+0x8 Bank2: ocram_base_address+0x20*i+0x10 Bank3: ocram_base_address+0x20*i+0x18 i = 0,1,2,3,4.....
void MECC_Init | ( | MECC_Type * | base, |
mecc_config_t * | config | ||
) |
MECC module initialization function.
base | MECC base address. |
config | pointer to the MECC configuration structure. |
brief MECC module initialization function.
param base MECC base address.