1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 3 #pragma once 4 #include <nlohmann/json.hpp> 5 6 namespace thermal 7 { 8 // clang-format off 9 10 enum class ReadingUnits{ 11 Invalid, 12 RPM, 13 Percent, 14 }; 15 16 NLOHMANN_JSON_SERIALIZE_ENUM(ReadingUnits, { 17 {ReadingUnits::Invalid, "Invalid"}, 18 {ReadingUnits::RPM, "RPM"}, 19 {ReadingUnits::Percent, "Percent"}, 20 }); 21 22 } 23 // clang-format on 24