Services - tools - models - for embedded software development
Embecosm divider strip
Prev  Next

4.6.2.  Conversion Between Binary and Hexadecimal Characters

The function hex () takes an ASCII character which is a valid hexadecimal digit (upper or lower case) and returns its value (0-15 decimal). Any invalid digit returns -1.

The static array hexchars[] declared at the top level in rsp-server.c provides a mapping from a hexadecimal digit value (in the range 0-15 decimal) to its ASCII character representation.

Embecosm divider strip