Home
last modified time | relevance | path

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

/external/bluetooth/bluedroid/btif/src/
Dbtif_util.c187 int ascii_2_hex (char *p_ascii, int len, UINT8 *p_hex) in ascii_2_hex() argument
192 for (x = 0; (x < len) && (*p_ascii); x++) in ascii_2_hex()
194 if (ISDIGIT (*p_ascii)) in ascii_2_hex()
195 c = (*p_ascii - '0') << 4; in ascii_2_hex()
197 c = (toupper(*p_ascii) - 'A' + 10) << 4; in ascii_2_hex()
199 p_ascii++; in ascii_2_hex()
200 if (*p_ascii) in ascii_2_hex()
202 if (ISDIGIT (*p_ascii)) in ascii_2_hex()
203 c |= (*p_ascii - '0'); in ascii_2_hex()
205 c |= (toupper(*p_ascii) - 'A' + 10); in ascii_2_hex()
[all …]
Dbtif_hh.c161 extern int scru_ascii_2_hex(char *p_ascii, int len, UINT8 *p_hex);
/external/bluetooth/bluedroid/btif/include/
Dbtif_util.h74 int ascii_2_hex (char *p_ascii, int len, UINT8 *p_hex);