| #pragma once | |
| #include <cstdint> | |
| #include <nlohmann/json.hpp> | |
| namespace thermal | |
| { | |
| // clang-format off | |
| enum class ReadingUnits : std::uint8_t{ | |
| Invalid, | |
| RPM, | |
| Percent, | |
| }; | |
| NLOHMANN_JSON_SERIALIZE_ENUM(ReadingUnits, { | |
| {ReadingUnits::Invalid, "Invalid"}, | |
| {ReadingUnits::RPM, "RPM"}, | |
| {ReadingUnits::Percent, "Percent"}, | |
| }); | |
| } // namespace thermal | |
| // clang-format on |