C
BYTE hexatob( WORD_VAL AsciiChars );
Description
Converts a two-character ASCII hex string to a single packed byte.
Preconditions
None
Parameters
Parameters |
Description |
AsciiChars |
WORD_VAL where .v[0] is the ASCII value for the lower nibble and .v[1] is the ASCII value for the upper nibble. Each must range from '0'-'9', 'A'-'F', or 'a'-'f'. |
Returns
Resulting packed byte 0x00 - 0xFF.