|
@ -16,10 +16,10 @@ typedef struct { |
|
|
#pragma pack(pop)
|
|
|
#pragma pack(pop)
|
|
|
|
|
|
|
|
|
typedef enum { |
|
|
typedef enum { |
|
|
kptv2_cmd = 0xA0, |
|
|
|
|
|
kptv2_ack = 0xA1, |
|
|
|
|
|
kptv2_error_ack = 0xA2, |
|
|
|
|
|
kptv2_event = 0xA3, |
|
|
|
|
|
|
|
|
kptv2_cmd = 0x70, |
|
|
|
|
|
kptv2_ack = 0x71, |
|
|
|
|
|
kptv2_error_ack = 0x72, |
|
|
|
|
|
kptv2_event = 0x73, |
|
|
} zcan_cmd_packet_type_t; |
|
|
} zcan_cmd_packet_type_t; |
|
|
|
|
|
|
|
|
static inline bool zcr_cmd_checkpacket(const zcr_cmd_header_t* header, int len) { |
|
|
static inline bool zcr_cmd_checkpacket(const zcr_cmd_header_t* header, int len) { |
|
|