-
Notifications
You must be signed in to change notification settings - Fork 1
/
genivi_demo_signals.c
107 lines (105 loc) · 2.22 KB
/
genivi_demo_signals.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#include <stdint.h>
#include "can_signals.h"
struct CanSignal geniviDemoSignals[] = {
{
.canId = 0x111,
.sigId = 9,
.sigName = "vehicle.engine.oilpressure",
.start = 0,
.end = 7,
.min = 0,
.max = 160,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 7,
.sigName = "vehicle.engine.rpm",
.start = 8,
.end = 15,
.min = 0,
.max = 100,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 8,
.sigName = "vehicle.engine.temperature",
.start = 16,
.end = 23,
.min = 0,
.max = 120,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 3,
.sigName = "vehicle.turnsignal.right",
.start = 24,
.end = 24,
.min = 0,
.max = 1,
.type = CAN_SIGNAL_BOOL
},
{
.canId = 0x111,
.sigId = 2,
.sigName = "vehicle.turnsignal.left",
.start = 25,
.end = 25,
.min = 0,
.max = 1,
.type = CAN_SIGNAL_BOOL
},
{
.canId = 0x111,
.sigId = 6,
.sigName = "vehicle.battery",
.start = 32,
.end = 39,
.min = 100,
.max = 140,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 10,
.sigName = "vehicle.transmission.gear",
.start = 40,
.end = 43,
.min = 0,
.max = 8,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 1,
.sigName = "vehicle.ignition",
.start = 44,
.end = 47,
.min = 0,
.max = 8,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 5,
.sigName = "vehicle.fuel",
.start = 48,
.end = 55,
.min = 0,
.max = 100,
.type = CAN_SIGNAL_UINT8
},
{
.canId = 0x111,
.sigId = 4,
.sigName = "vehicle.speed",
.start = 56,
.end = 63,
.min = 0,
.max = 220,
.type = CAN_SIGNAL_UINT8
},
};
uint32_t geniviDemoSignals_cnt = sizeof(geniviDemoSignals)/sizeof(geniviDemoSignals[0]);