diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-09-06 10:50:59 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-09-06 10:50:59 -0400 |
| commit | df3ed451bf11d40e6369b0333fef92c536c57b4d (patch) | |
| tree | 777fd2fbb0d941bd8587ecb7b75a6e34870837c0 /doc/protocol | |
| parent | d58635fd5cfedab133f8f25001289c77a3c874b1 (diff) | |
| download | can-gauge-interface-df3ed451bf11d40e6369b0333fef92c536c57b4d.zip | |
usb getchar()
Diffstat (limited to 'doc/protocol')
| -rw-r--r-- | doc/protocol | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/protocol b/doc/protocol index 5d2cb65..59e807d 100644 --- a/doc/protocol +++ b/doc/protocol @@ -8,12 +8,12 @@ Echo: Write EEPROM: <opcode> ::= "w" -<args> ::= <addr> <bytes>{:pagesize} -<retval> ::= "" +<args> ::= <addr> " " <size> " " <bytes> +<retval> ::= "ok" Read EEPROM: <opcode> ::= "r" -<args> ::= <addr> <size> +<args> ::= <addr> " " <size> <retval> ::= <bytes>{size} <addr> ::= "0"--"2047" @@ -22,4 +22,4 @@ Read EEPROM: <byte> ::= "0"--"FF" <size> ::= "0"--"2048" -pagesize := 16 +Messages must not contain NUL ('\0'). |