hex_to_byte

Description

Convert ASCII hex string to equivalent 8 bit binary integer value Only the first 2 characters of the string are interpreted

Definition

char hex_to_byte(char *ptr)

Library

LIB/str_byte_lib.bas

Usage

On entry:
ptr is a pointer to a RAM buffer holding the string to be converted
On exit:
The return value is in the range 0 to 0xff