2 * Automotive Message Broker Client Library
4 * Copyright (C) 2016 Samsung Electronics Co., Ltd.
6 * Licensed under the Apache License, Version 2.0 (the License)
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __LIBSAMSUNG_CAN_H__
20 #define __LIBSAMSUNG_CAN_H__
26 #include "libamb-util.h"
28 enum GearboxPositionDisplay {
29 PARKING = (1<<3) | (1<<1), // 10, 0x0A
36 NORMAL = (1<<3) | (1<<1), // 10, 0x0A
37 ECO = (1<<3) | (1<<2), // 12, 0x0C
45 CAN_OBJECT(GearboxPositionDisplay, guchar, NULL);
46 CAN_OBJECT(GearboxPosition, guchar, NULL);
47 CAN_OBJECT(DriveMode, guchar, NULL);
50 * Vehicle Speed & Odometer
53 CAN_OBJECT(VehicleSpeed, guint16, Speed);
54 CAN_OBJECT(VehicleOdometer, guint32, NULL);
60 CAN_OBJECT(EngineRPM, guint16, NULL);
61 CAN_OBJECT(WarterTemperature, guint16, NULL);
62 CAN_OBJECT(FuelGage, guchar, NULL);
65 * TPMS Tire Air pressure
68 CAN_OBJECT(TPMS_FL, guchar, NULL);
69 CAN_OBJECT(TPMS_FR, guchar, NULL);
70 CAN_OBJECT(TPMS_RL, guchar, NULL);
71 CAN_OBJECT(TPMS_RR, guchar, NULL);
74 * Warning Message & Status
77 CAN_OBJECT(WarningSafetybelts, gboolean, NULL);
78 CAN_OBJECT(WarningAirbag, gboolean, NULL);
79 CAN_OBJECT(CheckCharging, gboolean, NULL);
80 CAN_OBJECT(WarningLowOilLevel, gboolean, NULL);
81 CAN_OBJECT(CheckPowerSteering, gboolean, NULL);
82 CAN_OBJECT(WarningBrake, gboolean, NULL);
83 CAN_OBJECT(WarningEBD, gboolean, NULL);
85 CAN_OBJECT(CheckInRear, gboolean, NULL);
87 CAN_OBJECT(CheckEnging, gboolean, NULL);
88 CAN_OBJECT(EmergencyFlasher, gboolean, NULL);
89 CAN_OBJECT(FuelLeveltooLow, gboolean, NULL);
90 CAN_OBJECT(WarningTPM, gboolean, NULL);
91 CAN_OBJECT(LowWasher, gboolean, NULL);
92 CAN_OBJECT(SystemESC, gboolean, NULL);
93 CAN_OBJECT(SystemESCOff, gboolean, NULL);
95 CAN_OBJECT(WarningABS, gboolean, NULL);
96 CAN_OBJECT(StsDoorOpen, gboolean, NULL);
97 CAN_OBJECT(StsTrunkOpen, gboolean, NULL);
98 CAN_OBJECT(WarningImmobilizer, gboolean, NULL);
99 CAN_OBJECT(LampRearFogLights, gboolean, NULL);
101 CAN_OBJECT(LampHazardLight, gboolean, NULL);
102 CAN_OBJECT(LampFrontFog, gboolean, NULL);
103 CAN_OBJECT(LampTailLight, gboolean, NULL);
104 CAN_OBJECT(LampHighBeamAuto, gboolean, NULL);
105 CAN_OBJECT(LampHighBeam, gboolean, NULL);
106 CAN_OBJECT(LampCruiseCnt, gboolean, NULL);
107 CAN_OBJECT(LampCruiseCntSet, gboolean, NULL);
109 CAN_OBJECT(LampDoorOpenF_L, gboolean, NULL);
110 CAN_OBJECT(LampDoorOpenF_R, gboolean, NULL);
111 CAN_OBJECT(LampDoorOpenR_R, gboolean, NULL);
112 CAN_OBJECT(LampDoorOpenR_L, gboolean, NULL);
113 CAN_OBJECT(LampDoorOpenBonnet, gboolean, NULL);
114 CAN_OBJECT(LampDoorOpenTrunk, gboolean, NULL);
115 CAN_OBJECT(WarningParkingBreak, gboolean, NULL);
117 CAN_OBJECT(CheckSeatHeaterL, guchar, NULL);
118 CAN_OBJECT(CheckSeatHeaterR, guchar, NULL);
119 CAN_OBJECT(CheckSeatCoolerL, guchar, NULL);
120 CAN_OBJECT(CheckSeatCoolerR, guchar, NULL);
123 * Wheel Remote Controller Key Event
126 CAN_OBJECT(FR_KeyEvent01, gboolean, NULL);
127 CAN_OBJECT(FR_KeyEvent02, gboolean, NULL);
128 CAN_OBJECT(FR_KeyEvent03, gboolean, NULL);
129 CAN_OBJECT(FR_KeyEvent04, gboolean, NULL);
130 CAN_OBJECT(FR_KeyEvent05, gboolean, NULL);
131 CAN_OBJECT(FR_KeyEvent06, gboolean, NULL);
132 CAN_OBJECT(FR_KeyEvent07, gboolean, NULL);
133 CAN_OBJECT(FR_KeyEvent08, gboolean, NULL);
135 CAN_OBJECT(FR_KeyEvent09, gboolean, NULL);
136 CAN_OBJECT(FR_KeyEvent10, gboolean, NULL);
137 CAN_OBJECT(FR_KeyEvent11, gboolean, NULL);
138 CAN_OBJECT(FR_KeyEvent12, gboolean, NULL);
139 CAN_OBJECT(FR_KeyEvent13, gboolean, NULL);
140 CAN_OBJECT(FR_KeyEvent14, gboolean, NULL);
141 CAN_OBJECT(FR_KeyEvent15, gboolean, NULL);
143 CAN_OBJECT(FR_KeyEvent16, gboolean, NULL);
144 CAN_OBJECT(FR_KeyEvent17, gboolean, NULL);
145 CAN_OBJECT(FR_KeyEvent18, gboolean, NULL);
146 CAN_OBJECT(FR_KeyEvent19, gboolean, NULL);
147 CAN_OBJECT(FR_KeyEvent20, gboolean, NULL);
148 CAN_OBJECT(FR_KeyEvent21, gboolean, NULL);
149 CAN_OBJECT(FR_KeyEvent22, gboolean, NULL);
150 CAN_OBJECT(FR_KeyEvent23, gboolean, NULL);
152 CAN_OBJECT(FR_KeyEvent24, gboolean, NULL);
158 #endif /* __LIBSAMSUNG_CAN_H__ */