diff options
author | Christian Pointner <equinox@spreadspace.org> | 2013-07-03 21:02:45 +0000 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2013-07-03 21:02:45 +0000 |
commit | c843e1ea6b9ccaf7cfe70182f04e82f143cb289a (patch) | |
tree | c2a5d9d940372c1386fe18c3ed250d2cd987277a /downloader/proto.txt | |
parent | small reordering (diff) |
implemented basic commands
git-svn-id: https://svn.spreadspace.org/pic/trunk@26 a09c6847-51d9-44de-8ef2-e725cf50f3c7
Diffstat (limited to 'downloader/proto.txt')
-rw-r--r-- | downloader/proto.txt | 12 |
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 |