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.
 
 

38 lines
595 B

#pragma once
#include <fstream>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <vector>
namespace iflytop {
using namespace std;
typedef struct {
struct {
uint8_t fid : 4; // frame ID
uint8_t fnum : 4; // frame number
} frameinfo;
uint8_t to;
uint8_t from;
uint8_t pad;
} tdcan_id_t;
typedef struct {
uint8_t from;
uint8_t to;
uint8_t ptype;
uint8_t index;
uint16_t fnid;
uint8_t params[]; // parameters
} tdcan_frame_t;
} // namespace iflytop