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

📄 onlinedll.h

📁 MR320数据采集程序
💻 H
📖 第 1 页 / 共 2 页
字号:
#ifndef __ONLINEDLL_H
#define __ONLINEDLL_H

#include <windows.h>

#ifdef __cplusplus
extern "C" {            /* Assume C declarations for C++ */
#endif  /* __cplusplus */

#pragma pack (1)
//for ESC B Command
typedef struct _tagBARCFG   {
BYTE        code39,     // 'N' = Enable  barcode decoding of Code 39
                        // 'F' = Disable barcode decoding of Code 39
            i2of5,      // 'N' = Enable  barcode decoding of Interleaved 2 of 5
                        // 'F' = Disable barcode decoding of Interleaved 2 of 5
            codabar,    // 'N' = Enable  barcode decoding of CODABAR
                        // 'F' = Disable barcode decoding of CODABAR
            ean_upc,    // 'N' = Enable  barcode decoding of UPC/EAN
                        // 'F' = Disable barcode decoding of UPC/EAN
            code128,    // 'N' = Enable  barcode decoding of Code 128
                        // 'F' = Disable barcode decoding of Code 128
            ean128,     // 'N' = Enable  barcode decoding of EAN 128
                        // 'F' = Enable  barcode decoding of EAN 128
            code93;     // 'N' = Enable  barcode decoding of Code 93
                        // 'F' = Disable barcode decoding of Code 93
}                  BARCFG,  FAR* LPBARCFG;

typedef struct _tagBARCFG5  {   // for PT500 only
BYTE        code39,     // 'N' = Enable  barcode decoding of Code 39
                        // 'a'..'h'
                        // 'F' = Disable barcode decoding of Code 39
            i2of5,      // 'N' = Enable  barcode decoding of Interleaved 2 of 5
                        // 'a'..'h'
                        // 'F' = Disable barcode decoding of Interleaved 2 of 5
            codabar,    // 'N' = Enable  barcode decoding of CODABAR
                        // 'a'..'h'
                        // 'F' = Disable barcode decoding of CODABAR
            ean_upc,    // 'N' = Enable  barcode decoding of UPC/EAN
                        // 'a'..'p'
                        // 'F' = Disable barcode decoding of UPC/EAN
            code128,    // 'N' = Enable  barcode decoding of Code 128
                        // 'F' = Disable barcode decoding of Code 128
            ean128,     // 'N' = Enable  barcode decoding of EAN 128
//          (msi)       // 'a'..'c'
                        // 'F' = Enable  barcode decoding of EAN 128
            code93,     // 'N' = Enable  barcode decoding of Code 93
                        // 'F' = Disable barcode decoding of Code 93
            code32,     // 'N' = Enable  barcode decoding of Code 32
                        // 'a'..'d'
                        // 'F' = Disable barcode decoding of Code 32
            chnpost;    // 'N' = Enable  barcode decoding of China Postal Code
                        // 'a'..'h'
                        // 'F' = Enable  barcode decoding of China Postal Code
}                  BARCFG5, FAR* LPBARCFG5;

typedef struct _tagBARCFG6  {   // for PT600 only
BYTE        code39,     // 'E' = Enable  barcode decoding of Code 39
                        // 'F' = Enable  barcode decoding of Code 39, Full ASCII
                        // 'D' = Disable barcode decoding of Code 39
            i2of5,      // 'E' = Enable  barcode decoding of Interleaved 2 of 5
                        // 'D' = Disable barcode decoding of Interleaved 2 of 5
            codabar,    // 'E' = Enable  barcode decoding of CODABAR
                        // 'D' = Disable barcode decoding of CODABAR
            ean_upc,    // 'E' = Enable  barcode decoding of UPC/EAN
                        // 'D' = Disable barcode decoding of UPC/EAN
            code128,    // 'E' = Enable  barcode decoding of Code 128
                        // 'D' = Disable barcode decoding of Code 128
            ean128,     // 'E' = Enable  barcode decoding of EAN 128
                        // 'D' = Enable  barcode decoding of EAN 128
            code93;     // 'E' = Enable  barcode decoding of Code 93
                        // 'D' = Disable barcode decoding of Code 93
}                  BARCFG6, FAR* LPBARCFG6;

//for ESC C Command
typedef struct _tagCOMCFG   {
BYTE        BaudRate,   // '0' =   110 bps
                        // '1' =   150
                        // '2' =   300
                        // '3' =   600
                        // '4' =  1200
                        // '5' =  2400
                        // '6' =  4800
                        // '7' =  9600
                        // '8' = 19200
                        // '9' = 38400
                        // 'A' = 57600
            StopBits,   // '1' = 1 Stop Bit
                        // '2' = 2 Stop Bits
            DataBits,   // '7' = 7 Data Bits
                        // '8' = 8 Data Bits
            Parity,     // 'N' = None Parity
                        // 'O' = Odd  Parity
                        // 'E' = Even Parity
            Protocol,   // 'M' = Multi-point protocol
                        // 'F' = None protocol
            Address,    // 'A'..'Y', or '0'..'6'
            TimeOut[2], // '0' = reserved.
            FlowCtrl;   // 'N' = None
                        // 'X' = Xon/Xoff
                        // 'C' = CTS/RTS (effect with RS232 only)
}                  COMCFG,  FAR* LPCOMCFG;

//for ESC C Command
typedef struct _tagCOMCFG6  {   // for PT600 only
BYTE        BaudRate,   // '0' =   110 bps
                        // '1' =   150
                        // '2' =   300
                        // '3' =   600
                        // '4' =  1200
                        // '5' =  2400
                        // '6' =  4800
                        // '7' =  9600
                        // '8' = 19200
                        // '9' = 38400
                        // 'A' = 57600
            StopBits,   // '1' = 1 Stop Bit
                        // '2' = 2 Stop Bits
            DataBits,   // '7' = 7 Data Bits
                        // '8' = 8 Data Bits
            Parity,     // 'N' = None Parity
                        // 'O' = Odd  Parity
                        // 'E' = Even Parity
            FlowCtrl,   // 'N' = None
                        // 'X' = Xon/Xoff
                        // 'C' = CTS/RTS (effect with RS232 only)
            Protocol,   // 'M' = Multi-point protocol
                        // 'F' = None protocol
            Address,    // 'A'..'Y', or '0'..'6'
            TimeOut[3]; // '0' = reserved.
}                  COMCFG6, FAR* LPCOMCFG6;

//for ESC T Command
typedef struct _tagTRMCFG   {
char        ID[8];      // Terminal ID
BYTE        Online,     // 'R' = Remote. Transmit the data to host port.
                        // 'L' = Local.  No transmit.
            Echo,       // 'N' = Display data on LCD.
                        // 'F' = No Display.
            AutoLF,     // 'N' = Append a LF with Data.
                        // 'F' = No Append.
            Mode,       // 'C' = Set to Character Mode. Transmit the data
                        //       to the host port one character each time.
                        // 'B' = Set to Block Mode.     Transmit the data
                        //       to the host port one block each time.
            Block,      // 'L' = Set to line block mode.
                        // 'P' = Set to page block mode.
                        // 'B' = Set to both line and page block modes.
            Line,       // Line = end of line character.
            Page;       // Page = end of page character.
}                  TRMCFG, FAR *LPTRMCFG;

//for ESC V Command
typedef struct _tagDEVCFG2  {   // for MR320 only
BYTE        Scanner,    //  'A' = Auto Scanner
            Badge,      //  'B' = Slot Reader
            LCDBkLt,    //  'N' = On
                        //  'F' = Off
            Buzzer,     //  'N' = On
            BuzzerVol,  //  '0'..'7', '7' = Off
            Interval,   //  'N' = On
                        //  'F' = Off
            Reserved[2];//  '00'  Reserved
}                  DEVCFG2,FAR *LPDEVCFG2;

typedef struct _tagDEVCFG5  {   // for MR350 only
BYTE        Scanner,    //  'N' = reserved.
            Badge,      //  'B' = Enable  the badge.
                        //  'D' = Disable the badge.
            LCDBkLt,    //  'N' = reserved.

⌨️ 快捷键说明

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