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(VehicleOdometer, guint32, NULL);
54 CAN_OBJECT(VehicleSpeed, guint16, Speed);
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);
84 CAN_OBJECT(CheckEnging, gboolean, NULL);
85 CAN_OBJECT(EmergencyFlasher, gboolean, NULL);
86 CAN_OBJECT(FuelLeveltooLow, gboolean, NULL);
87 CAN_OBJECT(WarningTPM, gboolean, NULL);
88 CAN_OBJECT(LowWasher, gboolean, NULL);
89 CAN_OBJECT(SystemESC, gboolean, NULL);
90 CAN_OBJECT(SystemESCOff, gboolean, NULL);
91 CAN_OBJECT(WarningABS, gboolean, NULL);
92 CAN_OBJECT(StsDoorOpen, gboolean, NULL);
93 CAN_OBJECT(StsTrunkOpen, gboolean, NULL);
94 CAN_OBJECT(WarningImmobilizer, gboolean, NULL);
95 CAN_OBJECT(LampRearFogLights, gboolean, NULL);
96 CAN_OBJECT(LampHazardLight, gboolean, NULL);
97 CAN_OBJECT(LampFrontFog, gboolean, NULL);
98 CAN_OBJECT(LampTailLight, gboolean, NULL);
99 CAN_OBJECT(LampHighBeamAuto, gboolean, NULL);
100 CAN_OBJECT(LampHighBeam, gboolean, NULL);
101 CAN_OBJECT(LampCruiseCnt, gboolean, NULL);
102 CAN_OBJECT(LampCruiseCntSet, gboolean, NULL);
103 CAN_OBJECT(LampDoorOpenF_L, gboolean, NULL);
104 CAN_OBJECT(LampDoorOpenF_R, gboolean, NULL);
105 CAN_OBJECT(LampDoorOpenR_R, gboolean, NULL);
106 CAN_OBJECT(LampDoorOpenR_L, gboolean, NULL);
107 CAN_OBJECT(LampDoorOpenBonnet, gboolean, NULL);
108 CAN_OBJECT(LampDoorOpenTrunk, gboolean, NULL);
109 CAN_OBJECT(WarningParkingBreak, gboolean, NULL);
115 #endif /* __LIBSAMSUNG_CAN_H__ */