www.pudn.com > wmmp-sms-linux.rar > errordef.h, change:2006-12-26,size:2181b


#ifndef _ERROR_DEF_H_ 
#define _ERROR_DEF_H_ 
 
#define SMS_SUCCESS             0x00 
#define SMS_ERR_HANDLE          0x01   //error sms handler 
#define SMS_ERR_PARAMS          0x02   //error parameter 
#define SMS_ERR_TRAN_FLAG       0x03   //error transform flag 
#define SMS_ERR_CONF_VAL        0x04   //error configure value of sms 
#define SMS_ERR_DEV_USED        0x05   //device used 
#define SMS_ERR_OPEN_TTY        0x06   //fail to open tty 
#define SMS_ERR_AT_NOTOK        0x07   //no response of AT command 
#define SMS_ERR_UNKNOWN_MODUL   0x08   //unknown wireless module 
#define SMS_ERR_CLOSE_TTY       0x09   //fail to close tty 
#define SMS_ERR_AT_RESP_ERROR   0x0A   //return ERROR of AT command 
#define SMS_ERR_DATA_LEN        0x0B   //error data length 
#define SMS_ERR_DATA_VALUE      0x0C   //error data value 
#define SMS_ERR_CONV_DATA       0x0D   //convert data error  
#define SMS_ERR_NODE_EMPTY      0x0E   //sms node list is empty 
#define SMS_ERR_UNKNOWN_SMSNODE 0x0F   //unknown sms node 
#define SMS_ERR_ALLOC_SMSNODE   0x10   //fail to allocate a new SMS NODE 
#define SMS_ERR_TTY_UNFOUND     0x11   //not find tty device 
#define SMS_ERR_SMS_TYPE        0x12   //invalid sms type 
#define SMS_ERR_SMS_CODE        0x13   //invalid sms code 
#define SMS_ERR_SEND_ATCMD      0x14   //fail to send AT command 
#define SMS_ERR_SEND_SMS        0x15   //fail to send SMS 
#define SMS_ERR_NONEWSMS        0x16   //no available SMS 
#define SMS_ERR_READ_TTY        0x17   //fail to read tty 
#define SMS_ERR_NEWSMS_FORM     0x18   //error new SMS format 
#define SMS_ERR_PARSE           0x19   //fail to parse new SMS 
#define SMS_ERR_GET_SMSCNT      0x1A   //fail to get new sms count 
#define SMS_ERR_CALLBACK_NUM    0x1B   //error callback phone number 
#define SMS_ERR_MSG_CODING      0x1C   //error message coding  
#define SMS_ERR_MSG_DATA        0x1D   //error message data 
#define SMS_ERR_INIT_TTY        0x1E   //fail to initialize tty device 
#define SMS_ERR_SET_SMSC        0x1F   //fail to set SMS center 
#define SMS_ERR_MOD_TYPE        0x20   //error module type 
#define SMS_ERR_CSCS_TYPE       0x21   //error cscs type set 
 
 
 
#endif