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