/* Check whether the flag is set or reset.  */
uint16_t TMR_ReadStatusFlag(TMR_T *tmr, TMR_FLAG_T flag)
/* Check whether the flag is set or reset.  */
uint16_t TMR_ReadStatusFlag(TMR_T *tmr, TMR_FLAG_T flag)
{
    if ((tmr->STS & flag) != RESET)
    {
        return SET;
    }
    else
    {
        return RESET;
    }
}