<< "{std::make_shared<can_message_definition_t>(can_message_definition_t{"\r
<< gen(v.v_.bus()) << ","\r
<< v.v_.id() << ","\r
+ << v.v_.is_fd() << ","\r
<< "can_message_format_t::STANDARD,"\r
<< "frequency_clock_t(" << gen(v.v_.max_frequency()) << "),"\r
<< gen(v.v_.force_send_changed()) << ",\n";\r
return bus_;\r
}\r
\r
+ void can_message::is_fd(const bool is_fd)\r
+ {\r
+ is_fd_ = is_fd;\r
+ }\r
+\r
+ bool can_message::is_fd() const\r
+ {\r
+ return is_fd_;\r
+ }\r
+\r
bool can_message::bit_numbering_inverted() const\r
{\r
return bit_numbering_inverted_;\r
void can_message::from_json(const nlohmann::json& j)\r
{\r
bus_ = j.count("bus") ? j["bus"].get<std::string>() : "";\r
+ is_fd_ = j.count("is_fd") ? j["is_fd"].get<bool>() : false;\r
bit_numbering_inverted_ = j.count("bit_numbering_inverted") ? j["bit_numbering_inverted"].get<bool>() : false;\r
name_ = j.count("name") ? j["name"].get<std::string>() : "";\r
handlers_ = j.count("handlers") ? j["handlers"].get<std::vector<std::string>>() : std::vector<std::string>();\r
{\r
nlohmann::json j;\r
j["bus"] = bus_;\r
+ j["is_fd"] = is_fd_;\r
j["bit_numbering_inverted"] = bit_numbering_inverted_;\r
j["signals"] = signals_;\r
j["name"] = name_;\r
float max_signal_frequency_;\r
bool force_send_changed_;\r
bool force_send_changed_signals_;\r
+ bool is_fd_;\r
\r
public:\r
std::string id() const;\r
void id(const std::string& id);\r
+ void is_fd(const bool is_fd);\r
+ bool is_fd() const;\r
std::string bus() const;\r
bool bit_numbering_inverted() const;\r
const std::vector<signal>& signals() const;\r