Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_util.c172 int ascii_2_hex (const char *p_ascii, int len, UINT8 *p_hex) in ascii_2_hex() argument
177 for (x = 0; (x < len) && (*p_ascii); x++) in ascii_2_hex()
179 if (ISDIGIT (*p_ascii)) in ascii_2_hex()
180 c = (*p_ascii - '0') << 4; in ascii_2_hex()
182 c = (toupper(*p_ascii) - 'A' + 10) << 4; in ascii_2_hex()
184 p_ascii++; in ascii_2_hex()
185 if (*p_ascii) in ascii_2_hex()
187 if (ISDIGIT (*p_ascii)) in ascii_2_hex()
188 c |= (*p_ascii - '0'); in ascii_2_hex()
190 c |= (toupper(*p_ascii) - 'A' + 10); in ascii_2_hex()
[all …]
Dbtif_hh.c152 extern int scru_ascii_2_hex(char *p_ascii, int len, UINT8 *p_hex);
/system/bt/btif/include/
Dbtif_util.h76 int ascii_2_hex (const char *p_ascii, int len, UINT8 *p_hex);