You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
467 B
29 lines
467 B
#pragma once
|
|
#include <stdint.h>
|
|
|
|
namespace iflytop {
|
|
namespace zcr {
|
|
#pragma pack(push, 1)
|
|
typedef struct {
|
|
int8_t packetType;
|
|
int16_t cmdid;
|
|
int8_t moduleId;
|
|
int8_t index;
|
|
int8_t datalen;
|
|
uint8_t data[];
|
|
/* int8_t checksum;*/
|
|
} zcr_cmd_header_t;
|
|
#pragma pack(pop)
|
|
|
|
typedef enum {
|
|
kptv2_cmd = 0,
|
|
kptv2_ack = 1,
|
|
kptv2_error_ack = 2,
|
|
kptv2_event = 3,
|
|
} zcan_cmd_packet_type_t;
|
|
|
|
|
|
} // namespace zcr
|
|
} // namespace iflytop
|
|
|
|
|