Home
last modified time | relevance | path

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

/system/bt/btif/src/
Dbtif_util.cc87 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex) { in ascii_2_hex() argument
91 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 …]
Dbtif_hh.cc148 extern int scru_ascii_2_hex(char* p_ascii, int len, uint8_t* p_hex);
/system/bt/btif/include/
Dbtif_util.h65 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex);