12345678910111213141516171819202122232425262728293031323334353637383940 |
- #ifndef __COMMON__H__
- #define __COMMON__H__
- #ifdef ENABLE_GWSD_POC
- #define IP_DOMAIN_SIZE 50
- #define TRUE 1 ///< Âß¼Öµ Õæ
- #define FALSE 0 ///< Âß¼Ö® ¼Ù
- #ifndef NULL
- #define NULL 0
- #endif
- typedef enum{
- IPD_IP,
- IPD_DOMAIN
- }IPD_ENUM;
- typedef char T_INT8;
- typedef unsigned char T_UINT8;
- typedef short T_INT16;
- typedef unsigned short T_UINT16;
- typedef int T_INT32;
- typedef unsigned int T_UINT32;
- typedef char T_BOOL;
- T_BOOL checkIpDomain(T_INT8 *src, T_UINT16 len, T_INT8 * ipDomain, IPD_ENUM *type);
- T_INT8 restoreDataFormatByHex(T_UINT8 *src, T_UINT16 len);
- void fillByHexFormat(T_INT8 *src, T_INT8 *data, T_INT32 len);
- void MakeStringToUpperCap(T_UINT8 *data, T_UINT16 len);
- T_INT16 fitStrForIndex(T_INT8 *Str,T_INT8 *Para);
- unsigned char AscToHex(unsigned char aHex);
- void AscStrTurnHexStr(char *AscStr, char *HexStr);
- unsigned char bcdToDec(unsigned char value);
- #endif
- char msgCmp(char *msg, char *target);
- int GetParaFromStr(char *Str,char *Para,char *Value);
- unsigned char charStrToHex(char d1, char d2);
- #endif
|