For several packets, register values must be represented as strings
of characters in target endian order. For convenience, the functions
reg2hex ()
and
hex2reg ()
are provided. Each takes a
pointer to a buffer for the characters. For
reg2hex ()
a value to be converted is
passed. For hex2reg ()
the value
represented is returned as a result.