Home
last modified time | relevance | path

Searched refs:p_ascii (Results 1 – 3 of 3) sorted by relevance

/system/bt/btif/src/
Dbtif_util.c166 int ascii_2_hex (char *p_ascii, int len, UINT8 *p_hex) in ascii_2_hex() argument
171 for (x = 0; (x < len) && (*p_ascii); x++) in ascii_2_hex()
173 if (ISDIGIT (*p_ascii)) in ascii_2_hex()
174 c = (*p_ascii - '0') << 4; in ascii_2_hex()
176 c = (toupper(*p_ascii) - 'A' + 10) << 4; in ascii_2_hex()
178 p_ascii++; in ascii_2_hex()
179 if (*p_ascii) in ascii_2_hex()
181 if (ISDIGIT (*p_ascii)) in ascii_2_hex()
182 c |= (*p_ascii - '0'); in ascii_2_hex()
184 c |= (toupper(*p_ascii) - 'A' + 10); in ascii_2_hex()
[all …]
Dbtif_hh.c159 extern int scru_ascii_2_hex(char *p_ascii, int len, UINT8 *p_hex);
/system/bt/btif/include/
Dbtif_util.h73 int ascii_2_hex (char *p_ascii, int len, UINT8 *p_hex);