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

2 years ago
5 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
5 months ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. namespace iflytop {
  4. namespace zcr {
  5. #pragma pack(push, 1)
  6. typedef struct {
  7. int8_t packetType;
  8. int16_t cmdid;
  9. int8_t moduleId;
  10. int8_t index;
  11. int8_t datalen;
  12. uint8_t data[];
  13. /* int8_t checksum;*/
  14. } zcr_cmd_header_t;
  15. #pragma pack(pop)
  16. typedef enum {
  17. kptv2_cmd = 0,
  18. kptv2_ack = 1,
  19. kptv2_error_ack = 2,
  20. kptv2_event = 3,
  21. } zcan_cmd_packet_type_t;
  22. } // namespace zcr
  23. } // namespace iflytop