summaryrefslogtreecommitdiff
path: root/downloader/proto.txt
diff options
context:
space:
mode:
Diffstat (limited to 'downloader/proto.txt')
-rw-r--r--downloader/proto.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/downloader/proto.txt b/downloader/proto.txt
index 1228811..826be5f 100644
--- a/downloader/proto.txt
+++ b/downloader/proto.txt
@@ -17,7 +17,7 @@ Description:
Every command consits of one byte command code, a fixed number of bytes as
arguments and ends with a XOR checksum over all bytes sent. All data is
-transferred LSB first.
+transferred LSB first (aka little endian). All addresses and words are 2bytes long.
Every answer to a command starts with the command code. One byte return value,
optionally some data and a checksum (XOR over all bytes received)
The return codes have the following meaning:
@@ -138,7 +138,7 @@ read eeprom:
'e' | <ret> | data | <csum>
The bootloader reads <len> bytes from eeprom at address <addr> and returns it as
- <data>.
+ <data>. len is 2bytes long.
write eeprom:
@@ -151,7 +151,7 @@ write eeprom:
'E' | <ret> | <csum>
The bootloader writes <data> (which has to contain exactly <len> bytes) to address
- <addr> inside the eeprom.
+ <addr> inside the eeprom. len is 2bytes long.
read config:
@@ -163,7 +163,8 @@ read config:
answer:
'c' | <ret> | word | <csum>
- The bootloader reads and returns the configuration word number <nr>.
+ The bootloader reads and returns the configuration word number <nr>. <nr> is one
+ byte long.
write config:
@@ -175,4 +176,5 @@ write config:
answer:
'C' | <ret> | <csum>
- The bootloader writes <word> onto configuration word number <nr>.
+ The bootloader writes <word> onto configuration word number <nr>. <nr> is one
+ byte long