diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-09-06 13:24:11 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-09-06 13:24:11 -0400 |
| commit | 366330d3943ec4e066197a8d034d90caf8422a1d (patch) | |
| tree | eef4e0cc7882f77be931b81c8b5bb4c91dbcc0aa /doc/protocol | |
| parent | df3ed451bf11d40e6369b0333fef92c536c57b4d (diff) | |
| download | can-gauge-interface-366330d3943ec4e066197a8d034d90caf8422a1d.zip | |
fw: handle "w" write eeprom command
Diffstat (limited to 'doc/protocol')
| -rw-r--r-- | doc/protocol | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/doc/protocol b/doc/protocol index 59e807d..f144c50 100644 --- a/doc/protocol +++ b/doc/protocol @@ -1,5 +1,5 @@ <command> ::= <opcode> " " <args> "\n" -<response> ::= (<retval>|"nack") "\n" +<response> ::= (<retval> | "nack") "\n" Echo: <opcode> ::= "e" @@ -8,7 +8,7 @@ Echo: Write EEPROM: <opcode> ::= "w" -<args> ::= <addr> " " <size> " " <bytes> +<args> ::= <addrHi> " " <addrLo> " " <size> " " <bytes> <retval> ::= "ok" Read EEPROM: @@ -16,10 +16,9 @@ Read EEPROM: <args> ::= <addr> " " <size> <retval> ::= <bytes>{size} -<addr> ::= "0"--"2047" +<addrHi> ::= <byte> +<addrLo> :: <byte> +<size> ::= <byte> <bytes> ::= <byte> <bytetail> | "" <bytetail> ::= " " <byte> <bytetail> | "" -<byte> ::= "0"--"FF" -<size> ::= "0"--"2048" - -Messages must not contain NUL ('\0'). +<byte> ::= "00"--"FF" |