btohexa_high Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
btohexa_high Function
C
BYTE btohexa_high(
    BYTE b
);
Description

Converts the upper nibble of a binary value to a hexadecimal ASCII byte. For example, btohexa_high(0xAE) will return 'A'.

Preconditions

None

Parameters
Parameters 
Description 
the byte to convert 
Returns

The upper hexadecimal ASCII byte '0'-'9' or 'A'-'F'.

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