⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dialogic.linux

📁 著名的dialogic电话语音卡的java驱动程序,已经验证可用。
💻 LINUX
📖 第 1 页 / 共 5 页
字号:
        return dt_ret;
    }
    private static void ATDT_work_TSSGBIT() {dt_ret = ATDT_do_TSSGBIT(dt_p1); }
    
    // DCB
    private static native int dcb_libinit();
    
    static String dcb_name = "";
    static int dcb_ret = 0;
    static CDT dcb_cdt = null;
    static CDT dcb_cdts[] = null;
    static int dcb_p1 = 0;
    static int dcb_p2 = 0;
    static int dcb_p3 = 0;

    static final int DCB_ADDTOCONF = 301;
    private static native void dcb_do_addtoconf(int dev, int conf, CDT part);
    protected synchronized static void dcb_addtoconf(int dev, int conf, CDT part){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dcb_cdt = part;
        dowork(DCB_ADDTOCONF);
        dcb_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_addtoconf() {dcb_do_addtoconf(dcb_p1, dcb_p2, dcb_cdt); }

    static final int DCB_CLOSE = 302;
    private static native void dcb_do_close(int dev);
    protected synchronized static void dcb_close(int dev){
        dcb_p1 = dev;
        dowork(DCB_CLOSE);
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_close() {dcb_do_close(dcb_p1); }

    static final int DCB_DELCONF = 303;
    private static native void dcb_do_delconf(int dev, int conf);
    protected synchronized static void dcb_delconf(int dev, int conf){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dowork(DCB_DELCONF);
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_delconf() {dcb_do_delconf(dcb_p1, dcb_p2); }

    static final int DCB_ESTCONF = 304;
    private static native int dcb_do_estconf(int dev, CDT part[], int cattr);
    protected synchronized static int dcb_estconf(int dev, CDT part[], int cattr){
        dcb_p1 = dev;
        dcb_p2 = cattr;
        dcb_cdts = part;
        dowork(DCB_ESTCONF);
        dcb_cdts = null;
        if (workException != null) throw workException;
        return dcb_ret;
    }
    private static void dcb_work_estconf() {dcb_ret = dcb_do_estconf(dcb_p1, dcb_cdts, dcb_p2); }

    static final int DCB_GETBRDPARM = 305;
    private static native int dcb_do_getbrdparm(int dev, int parm);
    protected synchronized static int dcb_getbrdparm(int dev, int parm){
        dcb_p1 = dev;
        dcb_p2 = parm;
        dowork(DCB_GETBRDPARM);
        if (workException != null) throw workException;
        return dcb_ret;
    }
    private static void dcb_work_getbrdparm() {dcb_ret = dcb_do_getbrdparm(dcb_p1, dcb_p2); }

    static final int DCB_GETCDE = 306;
    private static native void dcb_do_getcde(int dev, int conf, CDT part);
    protected synchronized static void dcb_getcde(int dev, int conf, CDT part){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dcb_cdt = part;
        dowork(DCB_GETCDE);
        dcb_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_getcde() {dcb_do_getcde(dcb_p1, dcb_p2, dcb_cdt); }

    static final int DCB_GETTALKERS = 307;
    private static native void dcb_do_gettalkers(int dev, int conf, CDT[] part);
    protected synchronized static void dcb_gettalkers(int dev, int conf, CDT[] part){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dcb_cdts = part;
        dowork(DCB_GETTALKERS);
        dcb_cdts = null;
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_gettalkers() {dcb_do_gettalkers(dcb_p1, dcb_p2, dcb_cdts); }

    static final int DCB_OPEN = 308;
    private static native int dcb_do_open(String name, int flags);
    protected synchronized static int dcb_open(String name, int flags){
    	dcb_name = name;
        dcb_p1 = flags;
        dowork(DCB_OPEN);
        dcb_name = "";
        if (workException != null) throw workException;
        return dcb_ret;
    }
    private static void dcb_work_open() {dcb_ret = dcb_do_open(dcb_name, dcb_p1); }

    static final int DCB_REMFROMCONF = 309;
    private static native void dcb_do_remfromconf(int dev, int conf, CDT part);
    protected synchronized static void dcb_remfromconf(int dev, int conf, CDT part){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dcb_cdt = part;
        dowork(DCB_REMFROMCONF);
        dcb_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_remfromconf() {dcb_do_remfromconf(dcb_p1, dcb_p2, dcb_cdt); }

    static final int DCB_SETBRDPARM = 310;
    private static native void dcb_do_setbrdparm(int dev, int par, int val);
    protected synchronized static void dcb_setbrdparm(int dev, int par, int val){
        dcb_p1 = dev;
        dcb_p2 = par;
        dcb_p3 = val;
        dowork(DCB_SETBRDPARM);
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_setbrdparm() {dcb_do_setbrdparm(dcb_p1, dcb_p2, dcb_p3); }

    static final int DCB_SETCDE = 311;
    private static native void dcb_do_setcde(int dev, int conf, CDT part);
    protected synchronized static void dcb_setcde(int dev, int conf, CDT part){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dcb_cdt = part;
        dowork(DCB_SETCDE);
        dcb_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_setcde() {dcb_do_setcde(dcb_p1, dcb_p2, dcb_cdt); }

    static final int DCB_SETDIGITMSK = 312;
    private static native void dcb_do_setdigitmsk(int dev, int conf, int mask);
    protected synchronized static void dcb_setdigitmsk(int dev, int conf, int mask){
        dcb_p1 = dev;
        dcb_p2 = conf;
        dcb_p3 = mask;
        dowork(DCB_SETDIGITMSK);
        if (workException != null) throw workException;
        return;
    }
    private static void dcb_work_setdigitmsk() {dcb_do_setdigitmsk(dcb_p1, dcb_p2, dcb_p3); }

    // MSI
    private static native int ms_libinit();
    
    static String ms_name = "";
    static int ms_ret = 0;
    static CDT ms_cdt = null;
    static CDT ms_cdts[] = null;
    static int ms_p1 = 0;
    static int ms_p2 = 0;
    static int ms_p3 = 0;
    static int ms_p4 = 0;

    static final int MS_ADDTOCONF = 401;
    private static native void ms_do_addtoconf(int dev, int conf, CDT part);
    protected synchronized static void ms_addtoconf(int dev, int conf, CDT part){
        ms_p1 = dev;
        ms_p2 = conf;
        ms_cdt = part;
        dowork(MS_ADDTOCONF);
        ms_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_addtoconf() {ms_do_addtoconf(ms_p1, ms_p2, ms_cdt); }

    static final int MS_DELCONF = 402;
    private static native void ms_do_delconf(int dev, int conf);
    protected synchronized static void ms_delconf(int dev, int conf){
        ms_p1 = dev;
        ms_p2 = conf;
        dowork(MS_DELCONF);
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_delconf() {ms_do_delconf(ms_p1, ms_p2); }

    static final int MS_ESTCONF = 403;
    private static native int ms_do_estconf(int dev, CDT part[], int cattr);
    protected synchronized static int ms_estconf(int dev, CDT part[], int cattr){
        ms_p1 = dev;
        ms_p2 = cattr;
        ms_cdts = part;
        dowork(MS_ESTCONF);
        ms_cdts = null;
        if (workException != null) throw workException;
        return ms_ret;
    }
    private static void ms_work_estconf() {ms_ret = ms_do_estconf(ms_p1, ms_cdts, ms_p2); }

    static final int MS_GETCDE = 404;
    private static native void ms_do_getcde(int dev, int conf, CDT part);
    protected synchronized static void ms_getcde(int dev, int conf, CDT part){
        ms_p1 = dev;
        ms_p2 = conf;
        ms_cdt = part;
        dowork(MS_GETCDE);
        ms_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_getcde() {ms_do_getcde(ms_p1, ms_p2, ms_cdt); }

    static final int MS_REMFROMCONF = 405;
    private static native void ms_do_remfromconf(int dev, int conf, CDT part);
    protected synchronized static void ms_remfromconf(int dev, int conf, CDT part){
        ms_p1 = dev;
        ms_p2 = conf;
        ms_cdt = part;
        dowork(MS_REMFROMCONF);
        ms_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_remfromconf() {ms_do_remfromconf(ms_p1, ms_p2, ms_cdt); }

    static final int MS_SETCDE = 406;
    private static native void ms_do_setcde(int dev, int conf, CDT part);
    protected synchronized static void ms_setcde(int dev, int conf, CDT part){
        ms_p1 = dev;
        ms_p2 = conf;
        ms_cdt = part;
        dowork(MS_SETCDE);
        ms_cdt = null;
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_setcde() {ms_do_setcde(ms_p1, ms_p2, ms_cdt); }

    static final int MS_OPEN = 407;
    private static native int ms_do_open(String name, int flags);
    protected synchronized static int ms_open(String name, int flags){
    	ms_name = name;
        ms_p1 = flags;
        dowork(MS_OPEN);
        ms_name = "";
        if (workException != null) throw workException;
        return ms_ret;
    }
    private static void ms_work_open() {ms_ret = ms_do_open(ms_name, ms_p1); }

    static final int MS_CLOSE = 408;
    private static native void ms_do_close(int dev);
    protected synchronized static void ms_close(int dev){
        ms_p1 = dev;
        dowork(MS_CLOSE);
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_close() {ms_do_close(ms_p1); }

    static final int MS_GETBRDPARM = 409;
    private static native int ms_do_getbrdparm(int dev, int parm);
    protected synchronized static int ms_getbrdparm(int dev, int parm){
        ms_p1 = dev;
        ms_p2 = parm;
        dowork(MS_GETBRDPARM);
        if (workException != null) throw workException;
        return ms_ret;
    }
    private static void ms_work_getbrdparm() {ms_ret = ms_do_getbrdparm(ms_p1, ms_p2); }

    static final int MS_SETBRDPARM = 410;
    private static native void ms_do_setbrdparm(int dev, int par, int val);
    protected synchronized static void ms_setbrdparm(int dev, int par, int val){
        ms_p1 = dev;
        ms_p2 = par;
        ms_p3 = val;
        dowork(MS_SETBRDPARM);
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_setbrdparm() {ms_do_setbrdparm(ms_p1, ms_p2, ms_p3); }

    static final int MS_GETEVTMSK = 411;
    private static native int ms_do_getevtmsk(int dev, int event);
    protected synchronized static int ms_getevtmsk(int dev, int event){
        ms_p1 = dev;
        ms_p2 = event;
        dowork(MS_GETEVTMSK);
        if (workException != null) throw workException;
        return ms_ret;
    }
    private static void ms_work_getevtmsk() {ms_ret = ms_do_getevtmsk(ms_p1, ms_p2); }

    static final int MS_SETEVTMSK = 412;
    private static native void ms_do_setevtmsk(int dev, int event, int mask, int action);
    protected synchronized static void ms_setevtmsk(int dev, int event, int mask, int action){
        ms_p1 = dev;
        ms_p2 = event;
        ms_p3 = mask;
        ms_p4 = action;
        dowork(MS_SETEVTMSK);
        if (workException != null) throw workException;
    }
    private static void ms_work_setevtmsk() {ms_do_setevtmsk(ms_p1, ms_p2, ms_p3, ms_p4); }

    static final int MS_GETXMITSLOT = 413;
    private static native int ms_do_getxmitslot(int dev);
    protected synchronized static int ms_getxmitslot(int dev){
        ms_p1 = dev;
        dowork(MS_GETXMITSLOT);
        if (workException != null) throw workException;
        return ms_ret;
    }
    private static void ms_work_getxmitslot() {ms_ret = ms_do_getxmitslot(ms_p1); }

    static final int MS_LISTEN = 414;
    private static native void ms_do_listen(int dev, int ts);
    protected synchronized static void ms_listen(int dev, int ts){
        ms_p1 = dev;
        ms_p2 = ts;
        dowork(MS_LISTEN);
        if (workException != null) throw workException;
        return;
    }
    private static void ms_work_listen() {ms_do_listen(ms_p1, ms_p2); }

    static final int MS_UNLISTEN = 415;
    private static native void ms_do_unlisten(int dev);
    protected synchronized static void ms_unlisten(int dev){
        ms_p1 = dev;
        dowork(MS_UNLISTEN);
        if (workException != null) throw workException;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -