]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - tools/elftosb/common/HexValues.h
Added source of Freescale's 'elftosb' tool
[karo-tx-uboot.git] / tools / elftosb / common / HexValues.h
diff --git a/tools/elftosb/common/HexValues.h b/tools/elftosb/common/HexValues.h
new file mode 100644 (file)
index 0000000..b6dd821
--- /dev/null
@@ -0,0 +1,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_