Keep raw pointer for now as we have to move them around vector.
[apps/agl-service-can-low-level.git] / src / configuration-generated.cpp
1
2 /////////////////////////////////////////////////////////////////////////////////////
3 //                                                      THIS IS AN EXAMPLE
4 /////////////////////////////////////////////////////////////////////////////////////
5
6 #include <configuration.hpp>
7
8 #define OBD2_FUNCTIONAL_BROADCAST_ID 0x7df
9
10
11 std::vector<can_message_set_t> CAN_MESSAGE_SET =
12 {
13         {0, "example_messages", 1, 2, 2, 0, 19},
14 };
15
16 std::vector<std::vector<can_message_definition_t>> CAN_MESSAGES_DEFINTION = {
17         {
18                 {0x620, can_message_format_t::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL},
19                 {0x442, can_message_format_t::STANDARD, {10, 0, nullptr}, false, (uint8_t)NULL},
20         },
21 };
22
23 /**
24  * @brief Dumb SIGNALS array. It is composed by can_message_set_t
25  * SIGNALS[MESSAGE_SET_ID][can_signal_t]
26  */
27 std::vector<std::vector<can_signal_t>> SIGNALS = {
28         {
29                 {&(CAN_MESSAGES_DEFINTION[MESSAGE_SET_ID][0]), "can.driver_door.open", 2, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, 0.0},
30                 {&(CAN_MESSAGES_DEFINTION[MESSAGE_SET_ID][1]), "can.driver_door.close", 0, 4, 1.000000, 0.000000, 0.000000, 0.000000, {10, 0, nullptr}, false, true, nullptr, 0, false, decoder_t::booleanDecoder, nullptr, false, 0.0}
31         },
32 };