/* return The status flags. This is the logical OR of members of the enumeration ::qtmr_status_flags_t  */
uint32_t QTMR_GetStatus(TMR_Type *base, qtmr_channel_selection_t channel)
/* return The status flags. This is the logical OR of members of the enumeration ::qtmr_status_flags_t  */
uint32_t QTMR_GetStatus(TMR_Type *base, qtmr_channel_selection_t channel)
{
    uint32_t statusFlags = 0;
    uint16_t reg;
    reg = base->CHANNEL[channel].SCTRL;
    if (reg & TMR_SCTRL_TCF_MASK)
    {
        statusFlags |= kQTMR_CompareFlag;
    }
    if (reg & TMR_SCTRL_TOF_MASK)
    {
        statusFlags |= kQTMR_OverflowFlag;
    }
    if (reg & TMR_SCTRL_IEF_MASK)
    {
        statusFlags |= kQTMR_EdgeFlag;
    }
    reg = base->CHANNEL[channel].CSCTRL;
    if (reg & TMR_CSCTRL_TCF1_MASK)
    {
        statusFlags |= kQTMR_Compare1Flag;
    }
    if (reg & TMR_CSCTRL_TCF2_MASK)
    {
        statusFlags |= kQTMR_Compare2Flag;
    }
    return statusFlags;
}