43 #define TRGMUX_NUM_TARGET_MODULES ((uint8_t)(sizeof(s_trgmuxTargetModule)/sizeof(trgmux_target_module_t)))
45 #define TRGMUX_NUM_SEL_BITFIELDS_PER_REG (4U)
120 uint8_t idxTrgmuxRegister;
121 uint8_t idxSelBitfield;
172 uint8_t idxTrgmuxRegister, idxSelBitfield;
179 tmpReg = base->
TRGMUXn[idxTrgmuxRegister];
185 base->
TRGMUXn[idxTrgmuxRegister] = tmpReg;
202 uint8_t idxTrgmuxRegister, idxSelBitfield;
227 uint8_t idxTrgmuxRegister;
246 uint8_t idxTrgmuxRegister;
256 lock = (lockVal == 0U) ?
false :
true;
#define TRGMUX_TRGMUXn_LK_MASK
__IO uint32_t TRGMUXn[TRGMUX_TRGMUXn_COUNT]
status_t TRGMUX_HAL_Init(TRGMUX_Type *const base)
Restore the TRGMUX module to reset value.
#define TRGMUX_NUM_TARGET_MODULES
#define TRGMUX_TRGMUXn_SEL1_SHIFT
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.
void TRGMUX_HAL_SetLockForTargetModule(TRGMUX_Type *const base, const trgmux_target_module_t targetModule)
Lock the TRGMUX register of a target module.
#define TRGMUX_NUM_SEL_BITFIELDS_PER_REG
trgmux_target_module_t
Describes all possible outputs (target modules) of the TRGMUX IP.
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
#define TRGMUX_TRGMUXn_SEL0_MASK
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.
trgmux_trigger_source_t
Describes all possible inputs (trigger sources) of the TRGMUX IP.
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.
#define TRGMUX_TRGMUXn_LK_SHIFT