|
@ -1,20 +1,5 @@ |
|
|
#pragma once |
|
|
#pragma once |
|
|
#include <stdint.h> |
|
|
#include <stdint.h> |
|
|
|
|
|
|
|
|
namespace iflytop { |
|
|
|
|
|
namespace zscanprotocol { |
|
|
|
|
|
|
|
|
|
|
|
#pragma pack(1) |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* @brief 消息格式 12bit from,1bit emergency |
|
|
|
|
|
* H L |
|
|
|
|
|
* [1] [4bit] [8bit] [8bit] [4bit/4bit] |
|
|
|
|
|
* , from to frameNum/frameId |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
// 数值越大优先级越低 |
|
|
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
typedef enum { |
|
|
kcmd, |
|
|
kcmd, |
|
|
kreceipt, |
|
|
kreceipt, |
|
@ -42,10 +27,3 @@ typedef struct { |
|
|
uint16_t function_id; |
|
|
uint16_t function_id; |
|
|
uint8_t params[]; |
|
|
uint8_t params[]; |
|
|
} zcanbus_packet_t; |
|
|
} zcanbus_packet_t; |
|
|
|
|
|
|
|
|
#pragma pack() |
|
|
|
|
|
|
|
|
|
|
|
} // namespace zscanprotocol |
|
|
|
|
|
namespace err { |
|
|
|
|
|
} |
|
|
|
|
|
} // namespace iflytop |
|
|
|