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.

37 lines
595 B

  1. #pragma once
  2. #include <fstream>
  3. #include <functional>
  4. #include <iostream>
  5. #include <list>
  6. #include <map>
  7. #include <memory>
  8. #include <set>
  9. #include <sstream>
  10. #include <string>
  11. #include <vector>
  12. namespace iflytop {
  13. using namespace std;
  14. typedef struct {
  15. struct {
  16. uint8_t fid : 4; // frame ID
  17. uint8_t fnum : 4; // frame number
  18. } frameinfo;
  19. uint8_t to;
  20. uint8_t from;
  21. uint8_t pad;
  22. } tdcan_id_t;
  23. typedef struct {
  24. uint8_t from;
  25. uint8_t to;
  26. uint8_t ptype;
  27. uint8_t index;
  28. uint16_t fnid;
  29. uint8_t params[]; // parameters
  30. } tdcan_frame_t;
  31. } // namespace iflytop