mana: add optional value limits to array descriptor

This commit is contained in:
Florian Lüke 2024-12-30 10:39:46 +01:00
parent e7e7690d8f
commit 75cf07a212

View file

@ -109,6 +109,11 @@ inline nlohmann::json make_array_descriptor(const std::string &name, mana_data_t
j["data_type"] = data_type;
j["size"] = size;
j["bits"] = bits;
if (bits != 0)
{
j["lower_limit"] = 0u;
j["upper_limit"] = 1lu << bits;
}
return j;
}