/* get TLI flag or state in TLI_INTF register or TLI_STAT register  */
FlagStatus tli_flag_get(uint32_t flag)
/* get TLI flag or state in TLI_INTF register or TLI_STAT register  */
FlagStatus tli_flag_get(uint32_t flag)
{
    uint32_t stat;
    if(flag >> 31U) {
        stat = TLI_INTF;
    } else {
        stat = TLI_STAT;
    }
    if(flag & stat) {
        return SET;
    } else {
        return RESET;
    }
}