![]() |
S32 SDK
|
Error Injection Module Peripheral Driver.
EIM PD provides a set of high-level APIs/services to configure the Error Injection Module (EIM) module.
Data Structures | |
struct | eim_user_channel_config_t |
EIM channel configuration structure. More... | |
Variables | |
EIM_Type *const | g_eimBase [EIM_INSTANCE_COUNT] |
Table of base addresses for EIM instances. More... | |
EIM Driver API | |
void | EIM_DRV_Init (uint32_t instance, uint8_t channelCnt, const eim_user_channel_config_t *channelConfigArr) |
Initializes the EIM module. More... | |
void | EIM_DRV_Deinit (uint32_t instance) |
De-initializes the EIM module. More... | |
void | EIM_DRV_ConfigChannel (uint32_t instance, const eim_user_channel_config_t *userChannelConfig) |
Initializes the EIM channel. More... | |
void | EIM_DRV_GetChannelConfig (uint32_t instance, uint8_t channel, eim_user_channel_config_t *channelConfig) |
Gets the EIM channel configuration. More... | |
void EIM_DRV_ConfigChannel | ( | uint32_t | instance, |
const eim_user_channel_config_t * | userChannelConfig | ||
) |
Initializes the EIM channel.
This function configures check bit mask, data mask and operation status(enable/disable) for EIM channel. The EIM channel configuration structure shall be passed as arguments.
This is an example demonstrating how to define a EIM channel configuration structure:
[in] | instance | EIM module instance number |
[in] | userChannelConfig | Pointer to EIM channel configuration structure |
Definition at line 126 of file eim_driver.c.
void EIM_DRV_Deinit | ( | uint32_t | instance | ) |
De-initializes the EIM module.
This function sets all registers to reset value and disables EIM module. In order to use the EIM module again, EIM_DRV_Init must be called.
[in] | instance | EIM module instance number |
Definition at line 101 of file eim_driver.c.
void EIM_DRV_GetChannelConfig | ( | uint32_t | instance, |
uint8_t | channel, | ||
eim_user_channel_config_t * | channelConfig | ||
) |
Gets the EIM channel configuration.
This function gets check bit mask, data mask and operation status of EIM channel.
[in] | instance | EIM module instance number |
[in] | channel | EIM channel number |
[out] | channelConfig | Pointer to EIM channel configuration structure |
Definition at line 155 of file eim_driver.c.
void EIM_DRV_Init | ( | uint32_t | instance, |
uint8_t | channelCnt, | ||
const eim_user_channel_config_t * | channelConfigArr | ||
) |
Initializes the EIM module.
This function configures for EIM channels. The EIM channel configuration structure array and number of configured channels shall be passed as arguments. This function should be called before calling any other EIM driver function.
This is an example demonstrating how to define a EIM channel configuration structure array:
[in] | instance | EIM module instance number. |
[in] | channelCnt | Number of configured channels |
[in] | channelConfigArr | EIM channel configuration structure array |
Definition at line 66 of file eim_driver.c.
EIM_Type* const g_eimBase[EIM_INSTANCE_COUNT] |
Table of base addresses for EIM instances.
Definition at line 48 of file eim_driver.c.