mana: add optional value limits to array descriptor
This commit is contained in:
parent
e7e7690d8f
commit
75cf07a212
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue