Browse Source

update

master
zhaohe 1 year ago
parent
commit
0f9b9b0f84
  1. 11
      iflytop_canbus_protocol.hpp

11
iflytop_canbus_protocol.hpp

@ -8,16 +8,16 @@ extern "C" {
/**
* @brief 12bit from,1bit emergency
*
* H L
* [1] [4bit] [8bit] [8bit] [4bit/4bit]
* , from to frameNum/frameId
*/
typedef struct {
uint8_t pad;
uint8_t from;
uint8_t to;
uint8_t frameNumAndFrameId;
uint8_t to;
uint8_t from;
uint8_t pad;
} zcanid_t;
typedef struct {
@ -53,7 +53,7 @@ typedef enum {
} ProjectID_t;
typedef enum {
kerr_noerror = 0,
kerr_noerror = 0,
kerr_overtime = 1,
// 驱动器错误
@ -67,7 +67,6 @@ typedef enum {
} ErrorCode_t;
static const char *ErrorCodeToString(uint32_t code) {
switch (code) {
case kerr_noerror:

Loading…
Cancel
Save