2 * Copyright (C) 2012 TOYOTA MOTOR CORPORATION.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef VICCOMMUNICATOR_H
20 #define VICCOMMUNICATOR_H
22 #include "ambinterface.h"
28 * This class is an interface AMBIF class and MWIF class.
31 class VICCommunicator {
44 * @param ambif Instance of AMBIF
45 * @param mwif Instance of MWIF
46 * @param conf Instance of Converter
47 * @return Success : true Failure : false
50 initialize(AMBIF *ambif, MWIF *mwif, Converter *conv);
52 * This function changes the vehicle information of AMBIF.
54 * @param vehicleinfo Vehicle information of MW.
57 setAMBVehicleInfo(MWVehicleInfo *vehicleinfo);
59 * This function retrieves vehicle information about the AMBIF.
61 * @param vehicleinfo Vehicle information of MW.
64 getAMBVehicleInfo(MWVehicleInfo *vehicleinfo);
66 * This function changes the vehicle information of MWIF.
68 * @param vehicleinfo Vehicle information of AMB.
71 setMWVehicleInfo(AMBVehicleInfo *vehicleinfo);
76 getMWVehicleInfo(AMBVehicleInfo *vehicleinfo);
78 * Buffer size of vehicle information of AMB.
80 static const int maxambdatasize = 16;
83 resetAmbBuf(AMBVehicleInfo *vehicleinfo, size_t len);
85 resetMwBuf(MWVehicleInfo *vehicleinfo);
90 AMBVehicleInfo ambvehicleinfo[maxambdatasize];
91 MWVehicleInfo mwvehicleinfo;
93 #endif // #ifndef VICCOMMUNICATOR_H