]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - tools/elftosb/common/HexValues.h
Unified codebase for TX28, TX48, TX51, TX53
[karo-tx-uboot.git] / tools / elftosb / common / HexValues.h
1 /*
2  * File:        HexValues.h
3  *
4  * Copyright (c) Freescale Semiconductor, Inc. All rights reserved.
5  * See included license file for license details.
6  */
7 #if !defined(_HexValues_h_)
8 #define _HexValues_h_
9
10 #include "stdafx.h"
11
12 //! \brief Determines whether \a c is a hex digit character.
13 bool isHexDigit(char c);
14
15 //! \brief Converts a hexidecimal character to the integer equivalent.
16 uint8_t hexCharToInt(char c);
17
18 //! \brief Converts a hex-encoded byte to the integer equivalent.
19 uint8_t hexByteToInt(const char * encodedByte);
20
21 #endif // _HexValues_h_