123456789101112131415161718192021222324 |
- #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);
- void AscStrTurnHexStr(char *AscStr, char *HexStr);
- unsigned char bcdToDec(unsigned char value);
- #endif
|