40 #include "trgmux_hw_access.h"
86 status = TRGMUX_Init(base);
126 status = TRGMUX_Init(base);
149 lock = TRGMUX_GetLockForTargetModule(base, targetModule);
158 TRGMUX_SetTrigSourceForTargetModule(base, triggerSource, targetModule);
179 return TRGMUX_GetTrigSourceForTargetModule(base, targetModule);
196 TRGMUX_SetLockForTargetModule(base, targetModule);
214 return TRGMUX_GetLockForTargetModule(base, targetModule);
trgmux_trigger_source_t
Describes all possible inputs (trigger sources) of the TRGMUX IP Note: entries in this enum are aff...
trgmux_trigger_source_t TRGMUX_DRV_GetTrigSourceForTargetModule(const uint32_t instance, const trgmux_target_module_t targetModule)
Get the source trigger configured for a target module.
User configuration structure for the TRGMUX driver.
status_t TRGMUX_DRV_SetTrigSourceForTargetModule(const uint32_t instance, const trgmux_trigger_source_t triggerSource, const trgmux_target_module_t targetModule)
Configure a source trigger for a selected target module.
status_t TRGMUX_DRV_Deinit(const uint32_t instance)
Reset to default values the source triggers corresponding to all target modules, if none of the targe...
static TRGMUX_Type *const s_trgmuxBase[TRGMUX_INSTANCE_COUNT]
Table of base addresses for TRGMUX instances.
bool TRGMUX_DRV_GetLockForTargetModule(const uint32_t instance, const trgmux_target_module_t targetModule)
Get the Lock bit status of the TRGMUX register of a target module.
const trgmux_inout_mapping_config_t * inOutMappingConfig
uint8_t numInOutMappingConfigs
trgmux_trigger_source_t triggerSource
trgmux_target_module_t
Describes all possible outputs (target modules) of the TRGMUX IP Note: entries in this enum are aff...
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
status_t TRGMUX_DRV_Init(const uint32_t instance, const trgmux_user_config_t *const trgmuxUserConfig)
Initialize a TRGMUX instance for operation.
trgmux_target_module_t targetModule
#define TRGMUX_INSTANCE_COUNT
void TRGMUX_DRV_SetLockForTargetModule(const uint32_t instance, const trgmux_target_module_t targetModule)
Locks the TRGMUX register of a target module.