/* Enable of disable the specified interrupts of the specified TMRA unit.  */
void TMRA_IntCmd(CM_TMRA_TypeDef *TMRAx, uint32_t u32IntType, en_functional_state_t enNewState)
/* Enable of disable the specified interrupts of the specified TMRA unit.  */
void TMRA_IntCmd(CM_TMRA_TypeDef *TMRAx, uint32_t u32IntType, en_functional_state_t enNewState)
{
    uint32_t u32BCSTRH;
    uint32_t u32ICONR;
    DDL_ASSERT(IS_TMRA_UNIT_INT(TMRAx, u32IntType));
    DDL_ASSERT(IS_FUNCTIONAL_STATE(enNewState));
    u32BCSTRH = u32IntType & TMRA_BCSTRH_INT_MASK;
    u32ICONR  = u32IntType >> 16U;
    if (enNewState == ENABLE) {
        SET_REG8_BIT(TMRAx->BCSTRH, u32BCSTRH);
        SET_REG16_BIT(TMRAx->ICONR, u32ICONR);
    } else {
        CLR_REG8_BIT(TMRAx->BCSTRH, u32BCSTRH);
        CLR_REG16_BIT(TMRAx->ICONR, u32ICONR);
    }
}