#ifndef __COMMON_H_ #define __COMMON_H_ #include "datatype.h" #define USER_TIME_ZONE 8 typedef struct{ unsigned short year; unsigned char month; unsigned char day; unsigned char hour; unsigned char min; unsigned char sec; }MY_CLOCK; T_BOOL checkIpDomain(T_INT8 *address, T_UINT16 len, T_INT8 * ipDomain, IPD_ENUM *type); void hecPrint(T_UINT8 *data, T_UINT16 len); 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); T_INT16 matchCmdList(const char **cmdlist,T_UINT8 *data); unsigned char decToBCD(unsigned char value); int findByteFromStr(unsigned char *src, int len,unsigned char target,unsigned char index); unsigned char bcdToDec(unsigned char value); char isBytesAreHex(unsigned char *info, int len); #endif