Searched refs:p_ascii (Results 1 – 3 of 3) sorted by relevance
87 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex) { in ascii_2_hex() argument91 for (x = 0; (x < len) && (*p_ascii); x++) { in ascii_2_hex()92 if (ISDIGIT(*p_ascii)) in ascii_2_hex()93 c = (*p_ascii - '0') << 4; in ascii_2_hex()95 c = (toupper(*p_ascii) - 'A' + 10) << 4; in ascii_2_hex()97 p_ascii++; in ascii_2_hex()98 if (*p_ascii) { in ascii_2_hex()99 if (ISDIGIT(*p_ascii)) in ascii_2_hex()100 c |= (*p_ascii - '0'); in ascii_2_hex()102 c |= (toupper(*p_ascii) - 'A' + 10); in ascii_2_hex()[all …]
148 extern int scru_ascii_2_hex(char* p_ascii, int len, uint8_t* p_hex);
65 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex);