From 303f4f28d6546e37c6b478846807b8e410bed4cd Mon Sep 17 00:00:00 2001 From: glopesdev Date: Wed, 14 Jan 2026 10:42:54 +0000 Subject: [PATCH] Add length attribute to payload member This allows encoding heterogeneous payload fields across multiple elements, for example to compose a single U32 out of multiple U8 values. --- schema/registers.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/schema/registers.json b/schema/registers.json index 3787c9c..22901d3 100644 --- a/schema/registers.json +++ b/schema/registers.json @@ -113,9 +113,14 @@ "type": "integer" }, "offset": { - "description": "Specifies the payload array offset where this payload member is stored.", + "description": "Specifies the payload array offset where this payload member is encoded.", "type": "integer" }, + "length": { + "description": "Specifies the number of elements in the payload array used to encode this payload member.", + "type": "integer", + "minimum": 1 + }, "description": { "description": "Specifies a summary description of the payload member.", "type": "string"