blob: 5d2cb651bfe91f24e7c39f7b5dfe245b18b2d325 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<command> ::= <opcode> " " <args> "\n"
<response> ::= (<retval>|"nack") "\n"
Echo:
<opcode> ::= "e"
<args> :: <bytes>
<retval> :: <args>
Write EEPROM:
<opcode> ::= "w"
<args> ::= <addr> <bytes>{:pagesize}
<retval> ::= ""
Read EEPROM:
<opcode> ::= "r"
<args> ::= <addr> <size>
<retval> ::= <bytes>{size}
<addr> ::= "0"--"2047"
<bytes> ::= <byte> <bytetail> | ""
<bytetail> ::= " " <byte> <bytetail> | ""
<byte> ::= "0"--"FF"
<size> ::= "0"--"2048"
pagesize := 16
|