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

Loading…
Cancel
Save