net_type_translate_to_number(string)
Translates the 1-character hex string to a number.
string: A 1-character hex string (0-F).