diff --git a/avr/modules/comproto/MESSAGES b/avr/modules/comproto/MESSAGES index 7b63504..a265eaf 100644 --- a/avr/modules/comproto/MESSAGES +++ b/avr/modules/comproto/MESSAGES @@ -51,6 +51,24 @@ Offset Length Meaning +RESULT Message +============== + +Offset Length Meaning +--------------------------------------------------------- + 0 1 destination address + 1 1 remaining message length +--------------------------------------------------------- + 2 1 command code + 3 1 source address +--------------------------------------------------------- + 4 2 ref msg id + 6 1 result code +--------------------------------------------------------- + 7 1 CRC8 byte + + + Address Messages ================ @@ -107,7 +125,7 @@ Offset Length Meaning 12 2 value 14 2 denom --------------------------------------------------------- - 15 1 CRC8 byte + 16 1 CRC8 byte diff --git a/avr/modules/comproto/defs.asm b/avr/modules/comproto/defs.asm index d4a13f2..7a4708a 100644 --- a/avr/modules/comproto/defs.asm +++ b/avr/modules/comproto/defs.asm @@ -26,6 +26,8 @@ .equ CPRO_CMD_TWIBUSMEMBER = 30 .equ CPRO_CMD_DEBUG = 40 +.equ CPRO_CMD_RESULT = 50 + .equ CPRO_CMD_NEED_ADDRESS = 60 .equ CPRO_CMD_HAVE_ADDRESS = 61 .equ CPRO_CMD_CLAIM_ADDRESS = 62