Browse Source

init

master
zhaohe 1 year ago
parent
commit
0c0d21c3f8
  1. 20
      iflytop_canbus_protocol.hpp

20
iflytop_canbus_protocol.hpp

@ -0,0 +1,20 @@
#pragma once
#include <stdint.h>
extern "C" {
#pragma pack(1)
typedef struct {
uint8_t ptype;
uint16_t index;
uint16_t board_id;
uint16_t function_id;
uint8_t params[];
} zcanbus_packet_t;
#pragma pack()
typedef enum {
kcmd,
kreceipt,
kerror_receipt,
kreport,
} packet_type_t;
}
Loading…
Cancel
Save