- #ifndef _ERRINFO_DEF_
- #define _ERRINFO_DEF_
- /***********************************************/
- #define SUCCESS 0
- #define FAILURE 1
- #define COMMERR 2
- #define FORMAT_ERR 3
- #define OP_UNALLOWED 4
- #define CHECK_CRC_ERR 5
- #define NO_INIT_DATA 6
- #define COM_IS_OPENED 7
- #define NO_USEING_COM 8
- #define KEY_VALERR_CODE 9
- #define CARD_ERR_CODE 10
- #define CARD_WRITEERR_CODE 11
- #define CARD_READERR_CODE 12
- #define CARD_VALERR_CODE 13
- //=====================================
- #define CARD_NO_FINED 14
- #define CARD_NO_USER 15 //CARD_NO_FORMAT BY YSN!
- #define CARD_NO_SEED 16
- #define CARD_NO_SYSTEM 17
- #define NO_INI_EQUIP 18
- //=====================================
- #define MEM_IC_ERR 19
- #define MEMADDR_ERR 20
- #define MEMWRITE_ERR 21
- #define MEMREAD_ERR 22
- #define MEM_WILLFULL_WARNING 23
- #define MEM_FULL_ARALM 24
- #define NO_CON_RECORD 25
- #define KQ_REPEAT_CODE 26
- //=====================================
- #define CELL_CHARGE_CODE 30
- #define EXTERN_POWER_CODE 31
- #define CELL_ALARM_CODE 32
- #define CELL_POWRER_CODE 33
- //=====================================
- #define CARDVAL_NOFOR_CONSUME 34
- #define CARD_IS_EMPTYUSER 35
- #define CARD_OVERDUE_CODE 36
- #define CARD_LOSTED_CODE 37
- #define CARD_NO_UNIT 38
- #define CARD_NO_TYPE 39
- #define EQUIP_PARAERR_CODE 40
- #define NO_IN_CONSUMETIME 41
- #define UNALLOWED_CARDCLASS 42
- #define ONCE_CONSUME_OVER 43
- #define ASK_CONSUME_PWD 44
- #define PWDPOWER_ERR_CODE 45
- #define NO_DC_CODE 46
- #define OVER_TIMES_CODE 47
- #define DAY_CONSUME_OVER 48
- #define BH_CODE_ERR 50
- #define CARDSTATE_FULL 51
- #define NO_IN_ORDERTIME NO_IN_CONSUMETIME
- #define REPEAT_ORDER KQ_REPEAT_CODE
- #define OTHERERR 256
- /*********************************************/
- #endif
- #ifndef _BUZZER_H_
- #define _BUZZER_H_
- /*********************************************/
- #define BUZZER_WAIT 1
- #define BUZZER_SUCCESS 2
- #define BUZZER_BUSY 3
- #define BUZZER_ALARM 4
- #define BUZZER_ERROR 5
- /*********************************************/
- #endif
- #ifndef _SOUND_H_
- #define _SOUND_H_
- /*********************************************/
- #define WELCOME_INDEX 0
- #define WELCOME_ADDR 0X00
- #define DEL_CONRECORD_INDEX 1
- #define DEL_CONRECORD_ADDR 0X05
- #define DEL_ALL_INDEX 2
- #define DEL_ALL_ADDR 0X0B
- #define CARD_ERR_INDEX 3
- #define CARD_ERR_ADDR 0X15
- #define CARD_WRITEERR_INDEX 4
- #define CARD_WRITEERR_ADDR 0X10
- #define CARD_READERR_INDEX 5
- #define CARD_READERR_ADDR 0x1b
- #define CARD_VALERR_INDEX 6
- #define CARD_VALERR_ADDR 0x25
- #define KEY_VALERR_INDEX 7
- #define KEY_VALERR_ADDR 0x23
- #define SOUND_MAX_INDEX 20
- /***********************************************/
- #endif