bt_hex_nibble
b = bt_hex_nibble(str[0]);
b = bt_hex_nibble(str[0]);
if ((n1 = bt_hex_nibble(str[0])) < 0)
if ((n2 = bt_hex_nibble(str[1])) < 0)
static int bt_hex_nibble (char nibble);