v2g_serviceMethods.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*
  2. * Copyright (C) 2007-2011 Siemens AG
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published
  6. * by the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program 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
  12. * GNU Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. /*******************************************************************
  18. *
  19. * @author Sebastian.Kaebisch.EXT@siemens.com
  20. * @version 0.3.2
  21. * @contact Joerg.Heuer@siemens.com
  22. *
  23. ********************************************************************/
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #ifndef SERVICEMETHODS_H
  28. #define SERVICEMETHODS_H
  29. #include "v2g_serviceDataTypes.h"
  30. #include "EXITypes.h"
  31. /* This service methods has to be implemented by the EVSE server */
  32. int sessionSetup(struct SessionSetupReqType* param, struct SessionSetupResType* result);
  33. int serviceDiscovery(struct ServiceDiscoveryReqType* param, struct ServiceDiscoveryResType* result);
  34. int selectedServicePayment(struct ServicePaymentSelectionReqType* param, struct ServicePaymentSelectionResType* result);
  35. int paymentDetails(struct PaymentDetailsReqType* param, struct PaymentDetailsResType* result);
  36. int chargeParameterDiscovery(struct ChargeParameterDiscoveryReqType* param, struct ChargeParameterDiscoveryResType* result);
  37. int lineLock(struct LineLockReqType* param, struct LineLockResType* result);
  38. int powerDelivery(struct PowerDeliveryReqType* param, struct PowerDeliveryResType* result);
  39. int meteringStatus(struct MeteringStatusReqType* param, struct MeteringStatusResType* result);
  40. int meteringReceipt(struct MeteringReceiptReqType* param, struct MeteringReceiptResType* result);
  41. int cableCheck(struct CableCheckReqType* param, struct CableCheckResType* result);
  42. int preCharge(struct PreChargeReqType* param, struct PreChargeResType* result);
  43. int currentDemand(struct CurrentDemandReqType* param, struct CurrentDemandResType* result);
  44. int weldingDetection(struct WeldingDetectionReqType* param, struct WeldingDetectionResType* result);
  45. int terminateCharging(struct TerminateChargingReqType* param, struct TerminateChargingResType* result);
  46. #endif
  47. #ifdef __cplusplus
  48. }
  49. #endif