/* brief Enables TSI interrupt requests. param base TSI peripheral base address. param mask interrupt source The parameter can be combination of the following source if defined: arg kTSI_GlobalInterruptEnable arg kTSI_EndOfScanInterruptEnable arg kTSI_OutOfRangeInterruptEnable  */
void TSI_EnableInterrupts(TSI_Type *base, uint32_t mask)
/* brief Enables TSI interrupt requests. param base TSI peripheral base address. param mask interrupt source The parameter can be combination of the following source if defined: arg kTSI_GlobalInterruptEnable arg kTSI_EndOfScanInterruptEnable arg kTSI_OutOfRangeInterruptEnable  */
void TSI_EnableInterrupts(TSI_Type *base, uint32_t mask)
{
    uint32_t regValue = base->GENCS;
    if ((bool)(mask & (uint32_t)kTSI_OutOfRangeInterruptEnable))
    {
        regValue |= TSI_GENCS_OUTRG_EN_MASK;
    }
    if ((bool)(mask & (uint32_t)kTSI_EndOfScanInterruptEnable))
    {
        regValue |= TSI_GENCS_ESOR_MASK;
    }
    base->DATA &= ~(ALL_FLAGS_MASK);
    base->GENCS = regValue;
}