/* Get the status of the specified TMR2 flag.  */
en_flag_status_t TMR2_GetStatus(const CM_TMR2_TypeDef *TMR2x, uint32_t u32Flag)
/* Get the status of the specified TMR2 flag.  */
en_flag_status_t TMR2_GetStatus(const CM_TMR2_TypeDef *TMR2x, uint32_t u32Flag)
{
    en_flag_status_t enStatus = RESET;
    DDL_ASSERT(IS_TMR2_UNIT(TMR2x));
    DDL_ASSERT(IS_TMR2_FLAG(u32Flag));
    if (READ_REG32_BIT(TMR2x->STFLR, u32Flag) != 0U) {
        enStatus = SET;
    }
    return enStatus;
}