1234567891011121314151617181920212223242526272829303132 |
- #ifndef __COMMON_H_
- #define __COMMON_H_
- typedef struct SUTDL
- {
- union {
- struct { unsigned char b1,b2,b3,b4; }ucData;
- unsigned long ulData;
- }Data;
- }SUTDL;
- typedef struct SUTDS
- {
- union {
- struct { unsigned char b1,b2; }ucData;
- unsigned short usData;
- }Data;
- }SUTDS;
- int ModemStrCmp(char *msg,char *str);
- unsigned char AsciiHexStringToHexBytes(char *src, unsigned char *des);
- int GetParaFromStr(char *Str,char *Para,char *Value);
- void AscStrToHexStr(char *AscStr, char *HexStr);
- void StrAsciiToHex(char *src, unsigned char *des);
- void MakeStrEndByNewLine(char *str);
- void ReplaceStrWithN(char *str);
- short FindTargetIndex(char *source, char sourceEndIndicator, char *target, unsigned char targetLen,unsigned char witchOne);
- void AscStrTurnHexStr(char *AscStr, char *HexStr);
- short getSegMent(char *msg,unsigned char whichOne);
- #endif
|