Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

scale.h

00001 /* @(#)11       1.1  src/include/pos/scale.h, apicode, ptux1.2.0, 20 1/13/00 18:45:34 */
00002 
00003 /********************************************************************/
00004 /*  <scale.h> header file                                           */
00005 /*                                                                  */
00006 /*  Licensed Materials - Property of IBM                            */
00007 /*                                                                  */
00008 /*  IBM Point of Sale Subsystem                                     */
00009 /*  73G0950 (C) Copyright IBM Corporation 1992, 1995                */
00010 /*  All rights reserved                                             */
00011 /*                                                                  */
00012 /*  US Government Users Restricted Rights -                         */
00013 /*  Use, duplication, or disclosure restricted                      */
00014 /*  by GSA ADP Schedule Contract with IBM Corp.                     */
00015 /*                                                                  */
00016 /********************************************************************/
00017 
00018 #ifndef _H_POS_SCALE
00019 #define _H_POS_SCALE 1
00020 
00021 /****************************************************************/
00022 /* Values for the SUBTYPE field of ONLINE and OFFLINE messages. */
00023 /****************************************************************/
00024 
00025 #define PosSCALE_SUBTYPE_4687           1
00026 #define PosSCALE_SUBTYPE_4696           2
00027 #define PosSCALE_SUBTYPE_4698           2
00028 #define PosSCALE_SUBTYPE_USB_OEM        3
00029 
00030 
00031 /*****************************/
00032 /* PosScale resource names   */
00033 /*****************************/
00034 
00035 #define PosNdisplayRequired             "displayRequired"
00036 #define PosNoperMode                    "operMode"
00037 #define PosNvibrationFilter             "vibrationFilter"
00038 #define PosNweightMode                  "weightMode"
00039 #define PosNzeroIndState                "zeroIndState"
00040 #define PosNzeroRetState                "zeroRetState"
00041 #define PosNnumWeightDigits             "numWeightDigits"
00042 
00043 
00044 /****************************/
00045 /* Scale resource classes   */
00046 /****************************/
00047 
00048 #define PosCDisplayRequired             "DisplayRequired"
00049 #define PosCOperMode                    "OperMode"
00050 #define PosCVibrationFilter             "VibrationFilter"
00051 #define PosCWeightMode                  "WeightMode"
00052 #define PosCZeroIndState                "ZeroIndState"
00053 #define PosCZeroRetState                "ZeroRetState"
00054 #define PosCNumWeightDigits             "NumWeightDigits"
00055 
00056 
00057 
00058 /****************************************************************/
00059 /* Constants used in the Flags field of the scale data header   */
00060 /****************************************************************/
00061 
00062 #define POS_SCALE_IN_MOTION             0x0001
00063 #define POS_SCALE_UNDER_ZERO            0x0002
00064 #define POS_SCALE_OVER_CAPACITY         0x0004
00065 #define POS_SCALE_REQUIRES_ZEROING      0x0008
00066 #define POS_SCALE_NOT_READY             0x0010
00067 #define POS_SCALE_DUPLICATE_WEIGHT      0x0020
00068 #define POS_SCALE_HW_ERROR              0x0040
00069 #define POS_SCALE_FIVE_DIGIT_WEIGHT     0x0080
00070 
00071 
00072 /****************************************************************/
00073 /* PosScaleData structure -- Scale data                         */
00074 /****************************************************************/
00075 
00076 typedef struct
00077   {
00078     unsigned short WtType;              /* Weight Type   */
00079     unsigned short Flags;               /* Flags         */
00080     long           WeightValue;         /* Weight Value  */
00081   } PosScaleData;
00082 
00083 
00084 /**************************************************/
00085 /* Constants used only by Scales                  */
00086 /**************************************************/
00087 
00088 #define PosENGLISH                      0x00
00089 #define PosMETRIC                       0x01
00090 
00091 #define PosUSCANADA                     0x00
00092 #define PosUK                           0x01
00093 
00094 #define PosFOUR_WEIGHT_DIGITS           0x00
00095 #define PosFIVE_WEIGHT_DIGITS           0x01
00096 
00097 
00098 #endif   /* _H_POS_SCALE */

 

L.A.B. Project © 2001-2004 LAB Project & DJ Anubis