static int getIrqTypeFromIf(Interface intf) {
		final String TX_TYPE = EMBSW_DTS_IRQ + ".tx_type";
		int irqType = GIC_IRQ_TYPE_HIGH;
		String irqTypeStr = intf.getParamValByName(TX_TYPE);
		if (irqTypeStr!=null) {
			if(irqTypeStr.contentEquals("ACTIVE_HIGH")) {
				irqType = GIC_IRQ_TYPE_HIGH;
			} else if (irqTypeStr.contentEquals("ACTIVE_LOW")) {
				irqType = GIC_IRQ_TYPE_LOW;
			} else if (irqTypeStr.contentEquals("FALLING_EDGE")) {
				irqType = GIC_IRQ_TYPE_FALLING;
			} else if (irqTypeStr.contentEquals("RISING_EDGE")) {
				irqType = GIC_IRQ_TYPE_RISING;
			} else {
				Logger.logln("unknown " + TX_TYPE + ": " + irqTypeStr,LogLevel.ERROR);
			}
		}
		String txMask = intf.getParamValByName(EMBSW_DTS_IRQ + ".tx_mask");
		if (txMask != null) {
			Logger.logln("got mask "+txMask, LogLevel.DEBUG);
			irqType |= Integer.decode(txMask);
		}
		return irqType;
	}