add enhanced error codes

This commit is contained in:
john30
2020-02-15 12:39:24 +01:00
parent f2aae4cb2b
commit 2ddd7df758
2 changed files with 54 additions and 8 deletions
+12
View File
@@ -50,6 +50,14 @@ first second
`<FAILED> <master>`
Indicates that the last arbitration request failed (arbitration was lost or sending failed).
The data byte in `d` contains the master address that has won the arbitration.
* eBUS communication error
`<ERROR_EBUS> <error>`
Indicates an error in the eBUS UART.
The data byte in `d` contains the error message.
* host communication error
`<ERROR_HOST> <error>`
Indicates an error in the host UART.
The data byte in `d` contains the error message.
## Symbols
@@ -70,6 +78,10 @@ These are the predefined symbols as used above.
* STARTED 0x2
* FAILED 0xa
### Error codes (from interface to ebusd)
* ERR_FRAMING 0x00: framing error
* ERR_OVERRUN 0x00: buffer overrun error
## Examples