diff --git a/zscanprotocol.hpp b/zscanprotocol.h similarity index 57% rename from zscanprotocol.hpp rename to zscanprotocol.h index 5c8621a..6fdf1b2 100644 --- a/zscanprotocol.hpp +++ b/zscanprotocol.h @@ -1,20 +1,5 @@ #pragma once #include - -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 { kcmd, kreceipt, @@ -42,10 +27,3 @@ typedef struct { uint16_t function_id; uint8_t params[]; } zcanbus_packet_t; - -#pragma pack() - -} // namespace zscanprotocol -namespace err { -} -} // namespace iflytop