blob: 35d02f50e7fd7f123b5eb2512ae41963c37863b6 [file] [log] [blame]
#pragma once
#include <cstdint>
#include <nlohmann/json.hpp>
namespace pcie_slots
{
// clang-format off
enum class SlotTypes : std::uint8_t{
Invalid,
FullLength,
HalfLength,
LowProfile,
Mini,
M2,
OEM,
OCP3Small,
OCP3Large,
U2,
};
NLOHMANN_JSON_SERIALIZE_ENUM(SlotTypes, {
{SlotTypes::Invalid, "Invalid"},
{SlotTypes::FullLength, "FullLength"},
{SlotTypes::HalfLength, "HalfLength"},
{SlotTypes::LowProfile, "LowProfile"},
{SlotTypes::Mini, "Mini"},
{SlotTypes::M2, "M2"},
{SlotTypes::OEM, "OEM"},
{SlotTypes::OCP3Small, "OCP3Small"},
{SlotTypes::OCP3Large, "OCP3Large"},
{SlotTypes::U2, "U2"},
});
} // namespace pcie_slots
// clang-format on