Skip to content

Commit 91085f4

Browse files
committed
Clarify rejection of register writes
1 parent f9e646b commit 91085f4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

BinaryProtocol-8bit.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ The [`Error`](#error-flag-1-bit) flag in the [`MessageType`](#messagetype-1-byte
217217

218218
Requests which require prior configuration of multiple registers (e.g. starting a pulse train, moving a motor), or requests which are invalid due to particular combinations of other register values, SHOULD NOT be handled by sending an error reply.
219219

220-
Instead, such cases MAY be handled by sending an event message from a different register. Alternatively, an allowed value MAY be inferred and set, in which case the reply to the request MUST contain the actual register value which was set.
220+
Instead, such cases MAY be handled by sending an event message from a different register. Alternatively, an allowed value MAY be set by the Device, in which case the reply to the request MUST contain the actual register value which was set.
221+
222+
> [!NOTE]
223+
>
224+
> A Device MAY reject a change to the register value. In this case, a reply to the write request MUST still be sent, containing the current register value.
221225
222226
If an event message is sent from a register in response to a request sent to a different register, the documentation for the event register SHOULD clearly indicate which cases will raise the event, including specific combinations of values leading to error.
223227

0 commit comments

Comments
 (0)