Format
[apps/agl-service-can-low-level.git] / examples / toyota / configuration-generated.cpp
index b7a761e..61149c5 100644 (file)
@@ -1,12 +1,12 @@
-#include "configuration.hpp"
+#include "application.hpp"
 #include "can/can-decoder.hpp"
 
-configuration_t::configuration_t()
+application_t::application_t()
        : can_message_set_{{0, "example", 0, 1, 5, 0, 19}}
        , can_message_definition_
        {
                {
-                       can_message_definition_t(0, "vcan0", 0x620, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true)
+                       can_message_definition_t(0, "can0", 0x620, can_message_format_t::STANDARD, frequency_clock_t(0.00000f), true)
                }
        }
        , can_signals_
@@ -18,8 +18,8 @@ configuration_t::configuration_t()
                                "doors.coffer.open",
                                88,
                                1,
-                               0.00000f, 
-                               0, 
+                               0.00000f,
+                               0,
                                0,
                                0,
                                frequency_clock_t(0.00000f),
@@ -28,7 +28,7 @@ configuration_t::configuration_t()
                                {
                                },
                                false,
-                               decoder_t::booleanDecoder,
+                               decoder_t::decode_boolean,
                                nullptr,
                                false
                        },
@@ -38,8 +38,8 @@ configuration_t::configuration_t()
                                "doors.driver.open",
                                78,
                                1,
-                               0.00000f, 
-                               0, 
+                               0.00000f,
+                               0,
                                0,
                                0,
                                frequency_clock_t(0.00000f),
@@ -48,7 +48,7 @@ configuration_t::configuration_t()
                                {
                                },
                                false,
-                               decoder_t::booleanDecoder,
+                               decoder_t::decode_boolean,
                                nullptr,
                                false
                        },
@@ -58,8 +58,8 @@ configuration_t::configuration_t()
                                "doors.passenger.open",
                                79,
                                1,
-                               0.00000f, 
-                               0, 
+                               0.00000f,
+                               0,
                                0,
                                0,
                                frequency_clock_t(0.00000f),
@@ -68,7 +68,7 @@ configuration_t::configuration_t()
                                {
                                },
                                false,
-                               decoder_t::booleanDecoder,
+                               decoder_t::decode_boolean,
                                nullptr,
                                false
                        },
@@ -78,8 +78,8 @@ configuration_t::configuration_t()
                                "doors.rearleft.open",
                                86,
                                1,
-                               0.00000f, 
-                               0, 
+                               0.00000f,
+                               0,
                                0,
                                0,
                                frequency_clock_t(0.00000f),
@@ -88,7 +88,7 @@ configuration_t::configuration_t()
                                {
                                },
                                false,
-                               decoder_t::booleanDecoder,
+                               decoder_t::decode_boolean,
                                nullptr,
                                false
                        },
@@ -98,8 +98,8 @@ configuration_t::configuration_t()
                                "doors.rearright.open",
                                85,
                                4,
-                               0.00000f, 
-                               0, 
+                               0.00000f,
+                               0,
                                0,
                                0,
                                frequency_clock_t(0.00000f),
@@ -108,7 +108,7 @@ configuration_t::configuration_t()
                                {
                                },
                                false,
-                               decoder_t::booleanDecoder,
+                               decoder_t::decode_boolean,
                                nullptr,
                                false
                        }
@@ -331,9 +331,9 @@ configuration_t::configuration_t()
 {
 }
 
-const std::string configuration_t::get_diagnostic_bus() const
+const std::string application_t::get_diagnostic_bus() const
 {
-       return "vcan0";
+       return "can0";
 }