summaryrefslogtreecommitdiffstats
path: root/common/HexValues.h
blob: b6dd8215cecd589d5f4a4ec6d3f9834b150e5cda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * File:	HexValues.h
 *
 * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
 * See included license file for license details.
 */
#if !defined(_HexValues_h_)
#define _HexValues_h_

#include "stdafx.h"

//! \brief Determines whether \a c is a hex digit character.
bool isHexDigit(char c);

//! \brief Converts a hexidecimal character to the integer equivalent.
uint8_t hexCharToInt(char c);

//! \brief Converts a hex-encoded byte to the integer equivalent.
uint8_t hexByteToInt(const char * encodedByte);

#endif // _HexValues_h_