fix problems with CANbus, add USB-dump of error & command codes for CAN

This commit is contained in:
2021-12-02 17:46:26 +03:00
parent b24111f884
commit 867abe359a
8 changed files with 123 additions and 64 deletions

View File

@@ -37,12 +37,12 @@
// error codes for answer message
typedef enum{
ERR_OK, // all OK
ERR_BADPAR, // parameter's value is wrong
ERR_BADVAL, // wrong parameter's value
ERR_WRONGLEN, // wrong message length
ERR_BADCMD, // unknown command
ERR_CANTRUN, // can't run given command due to bad parameters or other
ERR_OK, // 0 - all OK
ERR_BADPAR, // 1 - parameter's value is wrong
ERR_BADVAL, // 2 - wrong parameter's value
ERR_WRONGLEN, // 3 - wrong message length
ERR_BADCMD, // 4 - unknown command
ERR_CANTRUN, // 5 - can't run given command due to bad parameters or other
} errcodes;
// pointer to function for command execution, both should be non-NULL for common cases