X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fbinding%2Fapplication-generated.cpp;h=1b0a3506df27c952b170d78d9c8eb9bbc6b28339;hb=7cf3679da71727f59c56b446ebf17ad2ce7bfddf;hp=876b95b999db616821965a26e19d19b1e00df975;hpb=ab6a4a5eb285a1ca88b3ad87ee035b9956e253ed;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/binding/application-generated.cpp b/low-can-binding/binding/application-generated.cpp index 876b95b9..1b0a3506 100644 --- a/low-can-binding/binding/application-generated.cpp +++ b/low-can-binding/binding/application-generated.cpp @@ -1,12 +1,19 @@ #include "application.hpp" #include "../can/can-decoder.hpp" +#include "../can/can-encoder.hpp" application_t::application_t() : can_bus_manager_{utils::config_parser_t{"/etc/dev-mapping.conf"}} , can_message_set_{ - {std::make_shared(can_message_set_t{0,"example", + {std::make_shared(can_message_set_t{0,"AGL Virtual Car", { // beginning can_message_definition_ vector - {std::make_shared(can_message_definition_t{"ls",0x30,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true, + {std::make_shared(can_message_definition_t{ + "ls", + 0x30, + false, + can_message_format_t::EXTENDED, + frequency_clock_t(5.00000f), + true, { // beginning can_signals vector {std::make_shared (can_signal_t{ "hvac.fan.speed", @@ -39,7 +46,7 @@ application_t::application_t() false, { }, - false, + true, nullptr, nullptr, false @@ -57,7 +64,7 @@ application_t::application_t() false, { }, - false, + true, nullptr, nullptr, false @@ -75,14 +82,20 @@ application_t::application_t() false, { }, - false, + true, nullptr, nullptr, false })} } // end can_signals vector })} // end can_message_definition entry -, {std::make_shared(can_message_definition_t{"hs",0x3D9,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true, +, {std::make_shared(can_message_definition_t{ + "hs", + 0x3D9, + true, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, { // beginning can_signals vector {std::make_shared (can_signal_t{ "engine.speed", @@ -140,7 +153,13 @@ application_t::application_t() })} } // end can_signals vector })} // end can_message_definition entry -, {std::make_shared(can_message_definition_t{"hs",0x3E9,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true, +, {std::make_shared(can_message_definition_t{ + "hs", + 0x3E9, + false, + can_message_format_t::EXTENDED, + frequency_clock_t(5.00000f), + true, { // beginning can_signals vector {std::make_shared (can_signal_t{ "vehicle.average.speed", @@ -162,7 +181,13 @@ application_t::application_t() })} } // end can_signals vector })} // end can_message_definition entry -, {std::make_shared(can_message_definition_t{"hs",0x4D1,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true, +, {std::make_shared(can_message_definition_t{ + "hs", + 0x4D1, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, { // beginning can_signals vector {std::make_shared (can_signal_t{ "engine.oil.temp", @@ -202,7 +227,13 @@ application_t::application_t() })} } // end can_signals vector })} // end can_message_definition entry -, {std::make_shared(can_message_definition_t{"hs",0x620,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true, +, {std::make_shared(can_message_definition_t{ + "hs", + 0x620, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, { // beginning can_signals vector {std::make_shared (can_signal_t{ "doors.boot.open", @@ -296,7 +327,13 @@ application_t::application_t() })} } // end can_signals vector })} // end can_message_definition entry -, {std::make_shared(can_message_definition_t{"hs",0x799,can_message_format_t::STANDARD,frequency_clock_t(5.00000f),true, +, {std::make_shared(can_message_definition_t{ + "hs", + 0x799, + false, + can_message_format_t::STANDARD, + frequency_clock_t(5.00000f), + true, { // beginning can_signals vector {std::make_shared (can_signal_t{ "windows.front_left.open", @@ -384,7 +421,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 5, @@ -395,7 +433,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 10, @@ -406,7 +445,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 11, @@ -417,7 +457,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 12, @@ -428,7 +469,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 13, @@ -439,7 +481,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 15, @@ -450,7 +493,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 16, @@ -461,7 +505,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 17, @@ -472,7 +517,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 31, @@ -483,7 +529,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 45, @@ -494,7 +541,8 @@ application_t::application_t() 0.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 47, @@ -505,7 +553,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 51, @@ -516,7 +565,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 70, @@ -527,7 +577,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 76, @@ -538,7 +589,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 82, @@ -549,7 +601,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 90, @@ -560,7 +613,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 91, @@ -571,7 +625,8 @@ application_t::application_t() 5.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 92, @@ -582,7 +637,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 94, @@ -593,7 +649,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} , {std::make_shared(diagnostic_message_t{ 99, @@ -604,7 +661,8 @@ application_t::application_t() 1.00000f, decoder_t::decode_obd2_response, nullptr, - true + true, + false })} } // end diagnostic_messages_ vector