/* File: CommonDefs.cs Description : CoreScanner common definitions Version: 1.0.0.1 Date: 2020-05-22 Copyright: ?020 Zebra Technologies Corporation and/or its affiliates. All rights reserved. */ namespace CoreScannerLib { /// /// Scanner Types /// public enum ScannerType { /// /// All Scanner Types mentioned below /// All = 1, /// /// Symbol Native API (SNAPI) with Imaging Interface /// Snapi = 2, /// /// Simple Serial Interface (SSI) over RS-232 /// SsiRs232 = 3, /// /// IBM Hand-held USB /// IbmHandheldUsb = 6, /// /// WincorNixdorf Mode B /// NixdorfModeB = 7, /// /// USB Keyboard HID /// UsbKeyboardHid = 8, /// /// IBM Table-top USB /// IbmTableTopUsb = 9, /// /// Simple Serial Interface (SSI) over Bluetooth Classic /// SsiBluetoothClassic = 11, /// /// OPOS (IBM Hand-held) /// Opos = 13 } /// /// Event Types /// public enum EventType { /// /// Barcode event Type /// Barcode = 1, /// /// Image event Type /// Image = 2, /// /// Video event Type /// Video = 4, /// /// RMD event Type /// Rmd = 8, /// /// PNP event Type /// Pnp = 16, /// /// Other event Types /// Other = 32, } /// /// Available Values For 'Status' /// public enum Status { /// /// Status success /// Success = 0, /// /// Status locked /// Locked = 10 } /// /// Barcode Event Type /// public enum DecodeEventType { /// /// Successful decode /// ScannerDecodeGood = 1 } /// /// Video Event Type /// public enum VideoEventType { /// /// Complete video frame captured /// VideoFrameComplete = 1 } /// /// Image Event Type /// public enum ImageEventType { /// /// Image captured /// ImageComplete = 1, /// /// Image error or status /// ImageTranStatus = 2, } /// /// Device Notification /// public enum DeviceNotification { /// /// Scanner attached /// ScannerAttached = 0, /// /// Scanner detached /// ScannerDetached = 1 } /// /// Scanner Notification /// public enum ScannerNotification { /// /// Barcode mode /// BarcodeMode = 1, /// /// Image mode /// ImageMode = 2, /// /// Video mode /// VideoMode = 3, /// /// Device enabled /// DeviceEnabled = 13, /// /// Device disabled /// DeviceDisabled = 14 } /// /// Firmware Download Events /// public enum FirmwareDownloadEvent { /// /// Triggered when flash download session starts /// ScannerUfSessionStart = 11, /// /// Triggered when component download starts /// ScannerUfDownloadStart = 12, /// /// Triggered when block(s) Of flash completed /// ScannerUfDownloadProgress = 13, /// /// Triggered when component download ends /// ScannerUfDownloadEnd = 14, /// /// Triggered when flash download session ends /// ScannerUFSessionEnd = 15 } /// /// File Types /// Please refer scanner PRGs for more information on scanner parameters. /// public enum FileType { /// /// Jpeg file /// JpegFileSelection = 1, /// /// Bmp file /// BmpFileSelection = 3, /// /// Tiff file /// TiffFileSelection = 4 } /// /// Video View Finder /// public enum VideoViewFinder { /// /// Video View Finder On /// On = 1, /// /// Video View Finder Off /// Off = 0 } /// /// Param Persistance /// public enum ParamPersistance { /// /// Parameters Persistance On /// ParamPersistanceOn = 1, /// /// Parameters Persistance On /// ParamPersistanceOff = 0 } /// /// Beep Codes /// Please refer scanner PRGs for more information on beep codes. /// public enum BeepCode { OneShortHigh = 0x00, TwoShortHigh = 0x01, ThreeShortHigh = 0x02, FourShortHigh = 0x03, FiveShortHigh = 0x04, OneShortLow = 0x05, TwoShortLow = 0x06, ThreeShortLow = 0x07, FourShortLow = 0x08, FiveShortLow = 0x09, OneLongHigh = 0x0a, TwoLongHigh = 0x0b, ThreeLongHigh = 0x0c, FourLongHigh = 0x0d, FiveLongHigh = 0x0e, OneLongLow = 0x0f, TwoLongLow = 0x10, ThreeLongLow = 0x11, FourLongLow = 0x12, FiveLongLow = 0x13, FastHighLowHighLow = 0x14, SlowHighLowHighLow = 0x15, HighLow = 0x16, LowHigh = 0x17, HighLowHigh = 0x18, LowHighLow = 0x19 } /// /// LED Codes /// Please refer scanner PRGs for more information on LED codes. /// public enum LEDCode { /// /// Green Led On /// Led1On = 0x2B, /// /// Yellow Led On /// Led2On = 0x2D, /// /// Red Led On /// Led3On = 0x2F, /// /// Green Led Off /// Led1Off = 0x2A, /// /// Yellow Led Off /// Led2Off = 0x2E, /// /// Red Led Off /// Led3Off = 0x30 } /// /// CoreScanner Opcodes /// Please refer Scanner SDK for Windows Developer Guide for more information on opcodes. /// public enum Opcode { /// /// Gets the version of CoreScanner /// GetVersion = 1000, /// /// Register for API events /// RegisterForEvents = 1001, /// /// Unregister for API events /// UnregisterForEvents = 1002, /// /// Get Bluetooth scanner pairing bar code /// GetPairingBarcode = 1005, /// /// Claim a specific device /// ClaimDevice = 1500, /// /// Release a specific device /// ReleaseDevice = 1501, /// /// Abort MacroPDF of a specified scanner /// AbortMacroPdf = 2000, /// /// Abort firmware update process of a specified scanner, while in progress /// AbortUpdateFirmware = 2001, /// /// Turn Aim off /// DeviceAimOff = 2002, /// /// Turn Aim on /// DeviceAimOn = 2003, /// /// Flush MacroPDF of a specified scanner /// FlushMacroPdf = 2005, /// /// Pull the trigger of a specified scanner /// DevicePullTrigger = 2011, /// /// Release the trigger of a specified scanner /// DeviceReleaseTrigger = 2012, /// /// Disable scanning on a specified scanner /// DeviceScanDisable = 2013, /// /// Enable scanning on a specified scanner /// DeviceScanEnable = 2014, /// /// Set parameters to default values of a specified scanner /// SetParameterDefaults = 2015, /// /// Set parameters of a specified scanner /// DeviceSetParameters = 2016, /// /// Set and persist parameters of a specified scanner /// SetParameterPersistance = 2017, /// /// Reboot a specified scanner /// RebootScanner = 2019, /// /// Disconnect the specified Bluetooth scanner /// DisconnectBluetoothScanner = 2023, /// /// Change a specified scanner to snapshot mode /// DeviceCaptureImage = 3000, /// /// Change a specified scanner to decode mode /// DeviceCaptureBarcode = 3500, /// /// Change a specified scanner to video mode /// DeviceCaptureVideo = 4000, /// /// Get all the attributes of a specified scanner /// RsmAttrGetAll = 5000, /// /// Get the attribute values(s) of specified scanner /// RsmAttrGet = 5001, /// /// Get the next attribute to a given attribute of specified scanner /// RsmAttrGetNext = 5002, /// /// Set the attribute values(s) of specified scanner /// RsmAttrSet = 5004, /// /// Store and persist the attribute values(s) of specified scanner /// RsmAttrStore = 5005, /// /// Get the topology of the connected devices /// GetDeviceTopology = 5006, /// /// Remove all Symbol device entries from registry /// UninstallSymbolDevices = 5010, /// /// Start (flashing) the updated firmware /// StartNewFirmware = 5014, /// /// Update the firmware to a specified scanner /// UpdateFirmware = 5016, /// /// Update the firmware to a specified scanner using a scanner plug-in /// UpdateFirmwareFromPlugin = 5017, /// /// Update good scan tone of the scanner with specified wav file /// UpdateDecodeTone = 5050, /// /// Erase good scan tone of the scanner /// EraseDecodeTone = 5051, /// /// Perform an action involving scanner beeper/LEDs /// SetAction = 6000, /// /// Set the serial port settings of a NIXDORF Mode-B scanner /// DeviceSetSerialPortSettings = 6101, /// /// Switch the USB host mode of a specified scanner /// DeviceSwitchHostMode = 6200, /// /// Switch CDC devices /// SwitchCdcDevices = 6201, /// /// Enable/Disable keyboard emulation mode /// KeyboardEmulatorEnable = 6300, /// /// Set the locale for keyboard emulation mode /// KeyboardEmulatorSetLocale = 6301, /// /// Get current configuration of the HID keyboard emulator /// KeyboardEmulatorGetConfig = 6302, /// /// Configure Driver ADF /// ConfigureDADF = 6400, /// /// Reset Driver ADF /// ResetDADF = 6401, /// /// Measure the weight on the scanner's platter and get the value /// ScaleReadWeight = 7000, /// /// Zero the scale /// ScaleZeroScale = 7002, /// /// Reset the scale /// ScaleSystemReset = 7015, } /// /// Code Types /// Please refer Scanner SDK for Windows Developer Guide for more information on code types. /// public enum CodeType { Unknown = 0x00, Code39 = 0x01, Codabar = 0x02, Code128 = 0x03, Discrete2of5 = 0x04, Iata = 0x05, Interleaved2of5 = 0x06, Code93 = 0x07, UpcA = 0x08, UpcE0 = 0x09, Ean8 = 0x0A, Ean13 = 0x0B, Code11 = 0x0C, Code49 = 0x0D, Msi = 0x0E, Ean128 = 0x0F, UpcE1 = 0x10, Pdf417 = 0x11, Code16k = 0x12, Code39FullAscii = 0x13, UpcD = 0x14, Code39Trioptic = 0x15, Bookland = 0x16, UpcaWCode128 = 0x17, // For Upc-A W/Code 128 Supplemental Jan13WCode128 = 0x78, // For Ean/Jan-13 W/Code 128 Supplemental Nw7 = 0x18, Isbt128 = 0x19, MicroPdf = 0x1a, Datamatrix = 0x1b, Qrcode = 0x1c, MicroPdfCca = 0x1d, PostnetUs = 0x1e, PlanetCode = 0x1f, Code32 = 0x20, Isbt128Con = 0x21, JapanPostal = 0x22, AusPostal = 0x23, DutchPostal = 0x24, Maxicode = 0x25, CanadinPostal = 0x26, UkPostal = 0x27, MacroPdf = 0x28, MacroQrCode = 0x29, MicroQrCode = 0x2c, Aztec = 0x2d, AztecRune = 0x2e, Distance = 0x2f, Rss14 = 0x30, RssLimited = 0x31, RssExpanded = 0x32, Parameter = 0x33, Usps4c = 0x34, UpuFicsPostal = 0x35, Issn = 0x36, Scanlet = 0x37, Cuecode = 0x38, Matrix2of5 = 0x39, Upca_2 = 0x48, Upce0_2 = 0x49, Ean8_2 = 0x4a, Ean13_2 = 0x4b, Upce1_2 = 0x50, CcaEan128 = 0x51, CcaEan13 = 0x52, CcaEan8 = 0x53, CcaRssExpanded = 0x54, CcaRssLimited = 0x55, CcaRss14 = 0x56, CcaUpca = 0x57, CcaUpce = 0x58, CccEan128 = 0x59, Tlc39 = 0x5a, CcbEan128 = 0x61, CcbEan13 = 0x62, CcbEan8 = 0x63, CcbRssExpanded = 0x64, CcbRssLimited = 0x65, CcbRss14 = 0x66, CcbUpca = 0x67, CcbUpce = 0x68, SignatureCapture = 0x69, Moa = 0x6a, Pdf417Parameter = 0x70, Chinese2of5 = 0x72, Korean3Of5 = 0x73, DatamatrixParam = 0x74, CodeZ = 0x75, Upca_5 = 0x88, Upce0_5 = 0x89, Ean8_5 = 0x8a, Ean13_5 = 0x8b, Upce1_5 = 0x90, MacroMicroPdf = 0x9a, OcrB = 0xa0, OcrA = 0xa1, ParsedDriverLicense = 0xb1, ParsedUid = 0xb2, ParsedNdc = 0xb3, DatabarCoupon = 0xb4, ParsedXml = 0xb6, HanXinCode = 0xb7, Calibration = 0xc0, Gs1Datamatrix = 0xc1, Gs1Qr = 0xc2, Mainmark = 0xc3, Dotcode = 0xc4, GridMatrix = 0xc8, } /// /// RSM Data Types /// public enum RSMDataType { /// /// Byte ?Unsigned char /// B, /// /// Char ?Signed byte /// C, /// /// Bit flags /// F, /// /// Word ?Short unsigned integer (16 Bits) /// W, /// /// Sword ?Short signed integer (16 Bits) /// I, /// /// Dword ?Long unsigned integer (32 Bits) /// D, /// /// Sdword ?Long signed integer (32 Bits) /// L, /// /// Array /// A, /// /// String /// S, /// /// Action /// X } /// /// Common constants definition class /// public static class Constant { /// Triggered when update error or status public const int ScannerUfStatus = 16; /// Maximum number of scanners to be connected public const int MaxNumDevices = 255; /// Video View Finder paaram number public const ushort VideoViewFinderParamNum = 0x0144; /// Image Filter Type param number public const ushort ImageFilterTypeParamNum = 0x0130; // These values may change with the scanner /// Maximum buffer size public const int MaxBuffSize = 1024; /// Maximum number of bytes per parameter public const int MaxParamLength = 2; /// Maximum number of bytes for serial number public const uint MaxSerialNumberLength = 255; /// Wave file buffer Size (Default file size Is 10kb) public const int WavFileMaxSize = 10240; } }