ApraLinuxUtils 1.0.0
C++ utility library for embedded Linux systems
 
Loading...
Searching...
No Matches
RealHexParser.h
Go to the documentation of this file.
1/*
2 * RealHexParser.h
3 *
4 * Copyright (c) 2024 Apra Labs
5 *
6 * This file is part of ApraUtils.
7 *
8 * Licensed under the MIT License.
9 * See LICENSE file in the project root for full license information.
10 */
11
12#ifndef INCLUDES_APRA_REALHEXPARSER_H_
13#define INCLUDES_APRA_REALHEXPARSER_H_
14#include <stdint.h>
15namespace apra
16{
18{
19public:
20 RealHexParser(uint8_t realPrecisionDigits);
21 virtual ~RealHexParser();
22 uint32_t toHex(double realNumber);
23 double toReal(uint32_t hexNumber);
24private:
25 uint8_t m_readDigits;
26 uint32_t m_bitsMask;
27};
28}
29
30#endif /* INCLUDES_APRA_REALHEXPARSER_H_ */
double toReal(uint32_t hexNumber)
uint32_t toHex(double realNumber)