![]() |
S32 SDK
|
Trigger MUX Control Hardware Abstraction Layer.
This HAL provides low-level access to all hardware features of the TRGMUX.
Functions | |
status_t | TRGMUX_HAL_Init (TRGMUX_Type *const base) |
Restore the TRGMUX module to reset value. More... | |
void | TRGMUX_HAL_SetTrigSourceForTargetModule (TRGMUX_Type *const base, const trgmux_trigger_source_t triggerSource, const trgmux_target_module_t targetModule) |
Configures a source trigger for a target module. More... | |
trgmux_trigger_source_t | TRGMUX_HAL_GetTrigSourceForTargetModule (const TRGMUX_Type *const base, const trgmux_target_module_t targetModule) |
Get the source trigger configured for a target module. More... | |
void | TRGMUX_HAL_SetLockForTargetModule (TRGMUX_Type *const base, const trgmux_target_module_t targetModule) |
Lock the TRGMUX register of a target module. More... | |
bool | TRGMUX_HAL_GetLockForTargetModule (const TRGMUX_Type *const base, const trgmux_target_module_t targetModule) |
Get the Lock bit status of the TRGMUX register of a target module. More... | |
Describes all possible outputs (target modules) of the TRGMUX IP.
Implements : trgmux_target_module_t_Class
Definition at line 125 of file trgmux_hal.h.
Describes all possible inputs (trigger sources) of the TRGMUX IP.
Implements : trgmux_trigger_source_t_Class
Definition at line 62 of file trgmux_hal.h.
bool TRGMUX_HAL_GetLockForTargetModule | ( | const TRGMUX_Type *const | base, |
const trgmux_target_module_t | targetModule | ||
) |
Get the Lock bit status of the TRGMUX register of a target module.
This function gets the value of the LK bit from the TRGMUX register corresponding to the selected target module.
[in] | base | The TRGMUX peripheral base address |
[in] | targetModule | One of the values in the trgmux_target_module_t enumeration |
Definition at line 241 of file trgmux_hal.c.
trgmux_trigger_source_t TRGMUX_HAL_GetTrigSourceForTargetModule | ( | const TRGMUX_Type *const | base, |
const trgmux_target_module_t | targetModule | ||
) |
Get the source trigger configured for a target module.
This function returns the TRGMUX source trigger linked to a selected target module.
[in] | base | The TRGMUX peripheral base address |
[in] | targetModule | One of the values in the trgmux_target_module_t enumeration |
Definition at line 197 of file trgmux_hal.c.
status_t TRGMUX_HAL_Init | ( | TRGMUX_Type *const | base | ) |
Restore the TRGMUX module to reset value.
This function restores the TRGMUX module to reset value.
[in] | base | The TRGMUX peripheral base address |
Definition at line 58 of file trgmux_hal.c.
void TRGMUX_HAL_SetLockForTargetModule | ( | TRGMUX_Type *const | base, |
const trgmux_target_module_t | targetModule | ||
) |
Lock the TRGMUX register of a target module.
This function sets the LK bit of the TRGMUX register corresponding to the selected target module. Please note that some TRGMUX registers can contain up to 4 SEL bitfields, meaning that these registers can be used to configure up to 4 target modules independently. Because the LK bit is only one per register, the configuration of all target modules referred from that register will be locked.
[in] | base | The TRGMUX peripheral base address |
[in] | targetModule | One of the values in the trgmux_target_module_t enumeration |
Definition at line 222 of file trgmux_hal.c.
void TRGMUX_HAL_SetTrigSourceForTargetModule | ( | TRGMUX_Type *const | base, |
const trgmux_trigger_source_t | triggerSource, | ||
const trgmux_target_module_t | targetModule | ||
) |
Configures a source trigger for a target module.
This function configures a TRGMUX link between a source trigger and a target module, if the requested target module is not locked.
[in] | base | The TRGMUX peripheral base address |
[in] | triggerSource | One of the values in the trgmux_trigger_source_t enumeration |
[in] | targetModule | One of the values in the trgmux_target_module_t enumeration |
Definition at line 166 of file trgmux_hal.c.