hexatob Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
hexatob Function
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.

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.