MyProtocol.h
上传用户:shyuanyi
上传日期:2008-05-24
资源大小:69k
文件大小:3k
- #ifndef _MYPROTOCOL_H_
- #define _MYPROTOCOL_H_
- /******************************************/
- //格式位置
- #define ASP_PLACE 0
- #define TYPE_PLACE 1
- #define NUMBER_PLACE1 2
- #define NUMBER_PLACE2 3
- #define DATLENGTH_PLACE 4
- #define FRAMECODE_PLACE 5
- #define ORDOR_PLACE 6
- #define DATAST_PLACE 7
- #define DATLENGTH_MIN 0
- #define DATLENGTH_MAX 160
- #define FRAMELENGTH_MIN 7
- #define FRAMELENGTH_MAX 175
- #define FRAMES_MAX 0x7F
- //|0x80 the finished frame!
- #define THELAST_FRAME 0x80
- //=================================
- #define DOWN_ASP 0x5A
- #define UP_ASP 0xA5
- //---------------------------------
- #define EMIT_TYPE 1 //发卡器
- //#define CONSUME_TYPE 2 //消费机
- #define WORKTIME_TYPE 3 //考勤机
- #define DOORDOG_TYPE 4 //门禁机
- #define GEIN_TYPE 5 //充值机
- #define DESTINE_TYPE 6 //定餐机
- #define LOST_TYPE 7 //挂失机
- #define CONSUME1_TYPE 0x11 //消费机1
- #define CONSUME2_TYPE 0X12 //消费机2
- #define CONSUME3_TYPE 0x13 //消费机3
- //-------------------------------------------
- #define CHECKEQUIP_ORDOR 0x50
- #define EQUIPANSWER_ORDOR 0x51
- #define AckSetGet_ORDOR 0x77
- //
- #define SetNumber_ORDOR 0x52
- #define ClearConParam_ORDOR 0x57
- #define SetDinnerParam_ORDOR 0XC0
- #define GetDinnerParam_ORDOR 0xC1
- #define SetDinnerCardClass_Para_ORDOR 0xC2
- #define GetDinnerCardClass_Para_ORDOR 0xC3
- #define SetAutoGainCards_ORDOR 0xC5
- #define GetAutoGainCards_ORDOR 0xC6
- #define SetAutoGainParam_ORDOR 0xC7
- #define GetAutoGainParam_ORDOR 0xC8
- //===========================================
- #define SetBh_Money_ORDOR 0x58
- #define GetBh_Money_ORDOR 0x59
- #define SendDcpeoples_ORDOR 0x5A
- #define SetSystemTime_ORDOR 0x60
- #define GetSystemTime_ORDOR 0x61
- #define SendCardStatus_ORDOR 0x62
- //#define CancelLossCard_ORDOR 0x62
- #define SetLostCardTime_ORDOR 0x63
- #define GetLossCardsTime_ORDOR 0x64
- #define GetCardStatus_ORDOR 0x65
- #define ReadConData_ORDOR 0x70
- #define SetConRecode_ORDOR 0x71
- #define SendCardGain_ORDOR 0x72
- #define GetCardGain_ORDOR 0x73
- #define GetConStatusInfo_ORDOR 0x75
- #define GetEquipVersionInfo_ORDOR 0x76
- #define GetCardLevel_ORDOR 0x80
- #define SetSeedCard_ORDOR 0x81
- #define GetUserCardInfo_ORDOR 0x82
- #define SetUserCardInfo_ORDOR 0x83
- #define SetOpUserInfo_ORDOR 0x90
- #define GetCurOpUserInfo 0x91
- #define GetOpUserInfo 0x92
- #define GetNumber_ORDOR 0x99
- /*******************************************/
- #endif