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

/system/bt/btif/src/
H A Dbtif_util.cc168 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex) { argument
172 for (x = 0; (x < len) && (*p_ascii); x++) {
173 if (ISDIGIT(*p_ascii))
174 c = (*p_ascii - '0') << 4;
176 c = (toupper(*p_ascii) - 'A' + 10) << 4;
178 p_ascii++;
179 if (*p_ascii) {
180 if (ISDIGIT(*p_ascii))
181 c |= (*p_ascii - '0');
183 c |= (toupper(*p_ascii)
[all...]
H A Dbtif_hh.cc148 extern int scru_ascii_2_hex(char* p_ascii, int len, uint8_t* p_hex);
/system/bt/btif/include/
H A Dbtif_util.h77 int ascii_2_hex(const char* p_ascii, int len, uint8_t* p_hex);

Completed in 351 milliseconds