hex_nibble_to_byte

Description

Convert ASCII hex character to equivalent 4 bit binary integer value

Definition

char hex_nibble_to_byte(char ch)

Library

LIB/str_byte_lib.bas

Usage

On entry:
ch is an ASCII hex character
On exit:
The return value is in the range 0 to 15 if ch was a valid hex digit, otherwise it will be 0xff