/* 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)
{
    return (tmr->STS & flag) ? SET : RESET;
}