26 #include "communication.h" 52 uint8_t SignedDecimalToString(int32_t value,
char *str);
53 uint8_t UnsignedDecimalToString(uint32_t value,
char *str);
54 uint8_t UnsignedDecimalLength(uint32_t value);
55 uint8_t UnsignedDecimalToStringFill(uint32_t value,
char *str,
56 uint8_t fillLength,
char fillCharacter);
57 uint8_t SignedDecimalToStringFill(int32_t value,
char *str,
58 uint8_t fillLength,
char fillCharacter);
61 uint8_t DecimalToBinaryString(uint32_t value,
char *str, uint8_t maxLength);
64 uint8_t DecimalToHexaString(uint32_t value,
char *str, uint8_t length);
65 uint8_t ByteToHexaString(uint8_t byte,
char *str);
66 char HexToHexChar(uint8_t octet);
69 uint8_t FloatToString(
float value,
char *str,
70 uint8_t integerLength, uint8_t fractionLength);
73 bool IsHexChar(
const char c);
74 bool IsDecimalChar(
const char c);
76 uint8_t StringIsHexadecimalString(
const char *str);
77 uint8_t StringIsUnsignedDecimalString(
const char *str);
78 uint8_t StringIsSignedDecimalString(
const char *str);
81 bool StringBinaryToNum(
const char *str, uint32_t *num);
84 bool HexCharToHex(
const char c, uint8_t *hexValue);
85 bool StringByteToNum(
const char *str, uint8_t *byte);
86 bool StringHexToNum(
const char *str, uint32_t *hexValue);
89 uint8_t DecimalCharToNum(
char c);
90 bool StringToUnsignedDecimalNum(
const char *str, uint32_t *value);
91 bool StringToSignedDecimalNum(
const char *str, int32_t *value);
94 bool StringToFloat(
const char *str,
float *Num);
97 uint8_t StringLength(
const char *str);
98 uint8_t StrCmp(
const char * str1,
const char *str2);
99 uint8_t StrCmpWithLength(
const char * str1,
const char *str2, uint8_t length);
100 uint8_t StrCpy(
char *dest,
const char *src);
101 uint8_t StrCpyFixLength(
char *dest,
const char *src, uint8_t length);
102 uint8_t StrCpyFixLengthWithFillCharacter(
char *dest,
const char *str,
103 uint8_t length,
char fillChar);
104 uint8_t StrCpyMax(
char *dest,
const char *str, uint8_t maxLength);
105 uint8_t StrAppend(
char *dest,
const char *src);
108 int16_t FindString(
const char *str,
const char *findString);
109 uint8_t STRING_Splitter(
char *source,
char delimiterChar,
110 char **separated, uint8_t parameterMaxCount);
114 uint8_t string_printf(
char *str,
const char *format, va_list ap);
115 uint8_t usprintf(
char *str,
const char *format, ...);
116 uint8_t uprintf(
const char *format, ...);
119 void STRING_UnitTest(
void);