-
Notifications
You must be signed in to change notification settings - Fork 2
/
wiper-ids.h
61 lines (49 loc) · 1.59 KB
/
wiper-ids.h
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
/********************************************************************************
* Copyright (c) 2022 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License 2.0 which is available at
* http://www.apache.org/licenses/LICENSE-2.0
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
#ifndef SOMEIP_WIPER_IDS_H
#define SOMEIP_WIPER_IDS_H
#include <vsomeip/vsomeip.hpp>
#define SAMPLE_SERVICE_ID 0x60d0
#define SAMPLE_INSTANCE_ID 0x0001
#define SAMPLE_METHOD_ID 0x8001
#define SAMPLE_METHOD_ID 0x8001
#define SAMPLE_EVENT_ID 0x8001 //0x8778
#define SAMPLE_EVENTGROUP_ID 0x0064
#define SAMPLE_SERVICE_MAJOR 0x01u
#define SAMPLE_SERVICE_MINOR 0x00u
/**
* @brief Example Wiper data structure
*/
typedef struct
{
_Float32 ActualPosition;
_Float32 DriveCurrent;
vsomeip::byte_t TempGear;
vsomeip::byte_t isWiping;
vsomeip::byte_t isEndingWipeCycle;
vsomeip::byte_t isWiperError;
vsomeip::byte_t isPositionReached;
vsomeip::byte_t isBlocked;
vsomeip::byte_t isOverheated;
vsomeip::byte_t ECUTemp;
vsomeip::byte_t LINError;
vsomeip::byte_t isOverVoltage;
vsomeip::byte_t isUnderVoltage;
} t_EventData;
// wiper event structure
typedef struct
{
vsomeip::byte_t sequenceCounter;
t_EventData data;
} t_Event;
#endif // SOMEIP_WIPER_IDS_H