* restructure project to support multiple ISO versions

* fixed once again EXTR_CHAR for 

git-svn-id: https://svn.code.sf.net/p/openv2g/code/trunk@99 d9f2db14-54d0-4bde-b00c-16405c910529
This commit is contained in:
daniel_peintner 2017-03-23 15:48:10 +00:00
parent 9dde0a7b3d
commit 3d6ad81223
37 changed files with 180141 additions and 173411 deletions

View file

@ -31,6 +31,8 @@
<option id="gnu.c.compiler.option.include.paths.229245493" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../src/codec&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/din&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/iso1&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/iso2&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/xmldsig&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/appHandshake&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/transport&quot;"/>
@ -92,6 +94,8 @@
<option id="gnu.c.compiler.option.include.paths.289860304" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;../src/codec&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/din&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/iso1&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/iso2&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/xmldsig&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/appHandshake&quot;"/>
<listOptionValue builtIn="false" value="&quot;../src/transport&quot;"/>

View file

@ -11,6 +11,8 @@ RM := rm -rf
-include src/xmldsig/subdir.mk
-include src/transport/subdir.mk
-include src/test/subdir.mk
-include src/iso2/subdir.mk
-include src/iso1/subdir.mk
-include src/din/subdir.mk
-include src/codec/subdir.mk
-include src/appHandshake/subdir.mk

View file

@ -16,6 +16,8 @@ SUBDIRS := \
src/xmldsig \
src/transport \
src/test \
src/iso2 \
src/iso1 \
src/din \
src/codec \
src/appHandshake \

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/appHandshake/%.o: ../src/appHandshake/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -11,10 +11,7 @@ C_SRCS += \
../src/codec/EXIHeaderDecoder.c \
../src/codec/EXIHeaderEncoder.c \
../src/codec/EncoderChannel.c \
../src/codec/MethodsBag.c \
../src/codec/v2gEXIDatatypes.c \
../src/codec/v2gEXIDatatypesDecoder.c \
../src/codec/v2gEXIDatatypesEncoder.c
../src/codec/MethodsBag.c
OBJS += \
./src/codec/BitInputStream.o \
@ -24,10 +21,7 @@ OBJS += \
./src/codec/EXIHeaderDecoder.o \
./src/codec/EXIHeaderEncoder.o \
./src/codec/EncoderChannel.o \
./src/codec/MethodsBag.o \
./src/codec/v2gEXIDatatypes.o \
./src/codec/v2gEXIDatatypesDecoder.o \
./src/codec/v2gEXIDatatypesEncoder.o
./src/codec/MethodsBag.o
C_DEPS += \
./src/codec/BitInputStream.d \
@ -37,17 +31,14 @@ C_DEPS += \
./src/codec/EXIHeaderDecoder.d \
./src/codec/EXIHeaderEncoder.d \
./src/codec/EncoderChannel.d \
./src/codec/MethodsBag.d \
./src/codec/v2gEXIDatatypes.d \
./src/codec/v2gEXIDatatypesDecoder.d \
./src/codec/v2gEXIDatatypesEncoder.d
./src/codec/MethodsBag.d
# Each subdirectory must supply rules for building sources it contributes
src/codec/%.o: ../src/codec/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/din/%.o: ../src/din/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

30
Debug/src/iso1/subdir.mk Normal file
View file

@ -0,0 +1,30 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/iso1/iso1EXIDatatypes.c \
../src/iso1/iso1EXIDatatypesDecoder.c \
../src/iso1/iso1EXIDatatypesEncoder.c
OBJS += \
./src/iso1/iso1EXIDatatypes.o \
./src/iso1/iso1EXIDatatypesDecoder.o \
./src/iso1/iso1EXIDatatypesEncoder.o
C_DEPS += \
./src/iso1/iso1EXIDatatypes.d \
./src/iso1/iso1EXIDatatypesDecoder.d \
./src/iso1/iso1EXIDatatypesEncoder.d
# Each subdirectory must supply rules for building sources it contributes
src/iso1/%.o: ../src/iso1/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

30
Debug/src/iso2/subdir.mk Normal file
View file

@ -0,0 +1,30 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/iso2/iso2EXIDatatypes.c \
../src/iso2/iso2EXIDatatypesDecoder.c \
../src/iso2/iso2EXIDatatypesEncoder.c
OBJS += \
./src/iso2/iso2EXIDatatypes.o \
./src/iso2/iso2EXIDatatypesDecoder.o \
./src/iso2/iso2EXIDatatypesEncoder.o
C_DEPS += \
./src/iso2/iso2EXIDatatypes.d \
./src/iso2/iso2EXIDatatypesDecoder.d \
./src/iso2/iso2EXIDatatypesEncoder.d
# Each subdirectory must supply rules for building sources it contributes
src/iso2/%.o: ../src/iso2/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/test/%.o: ../src/test/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -17,7 +17,7 @@ C_DEPS += \
src/transport/%.o: ../src/transport/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/xmldsig/%.o: ../src/xmldsig/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -O0 -g3 -Wall -c -fmessage-length=0 -ansi -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -11,6 +11,8 @@ RM := rm -rf
-include src/xmldsig/subdir.mk
-include src/transport/subdir.mk
-include src/test/subdir.mk
-include src/iso2/subdir.mk
-include src/iso1/subdir.mk
-include src/din/subdir.mk
-include src/codec/subdir.mk
-include src/appHandshake/subdir.mk

View file

@ -16,6 +16,8 @@ SUBDIRS := \
src/xmldsig \
src/transport \
src/test \
src/iso2 \
src/iso1 \
src/din \
src/codec \
src/appHandshake \

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/appHandshake/%.o: ../src/appHandshake/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -11,10 +11,7 @@ C_SRCS += \
../src/codec/EXIHeaderDecoder.c \
../src/codec/EXIHeaderEncoder.c \
../src/codec/EncoderChannel.c \
../src/codec/MethodsBag.c \
../src/codec/v2gEXIDatatypes.c \
../src/codec/v2gEXIDatatypesDecoder.c \
../src/codec/v2gEXIDatatypesEncoder.c
../src/codec/MethodsBag.c
OBJS += \
./src/codec/BitInputStream.o \
@ -24,10 +21,7 @@ OBJS += \
./src/codec/EXIHeaderDecoder.o \
./src/codec/EXIHeaderEncoder.o \
./src/codec/EncoderChannel.o \
./src/codec/MethodsBag.o \
./src/codec/v2gEXIDatatypes.o \
./src/codec/v2gEXIDatatypesDecoder.o \
./src/codec/v2gEXIDatatypesEncoder.o
./src/codec/MethodsBag.o
C_DEPS += \
./src/codec/BitInputStream.d \
@ -37,17 +31,14 @@ C_DEPS += \
./src/codec/EXIHeaderDecoder.d \
./src/codec/EXIHeaderEncoder.d \
./src/codec/EncoderChannel.d \
./src/codec/MethodsBag.d \
./src/codec/v2gEXIDatatypes.d \
./src/codec/v2gEXIDatatypesDecoder.d \
./src/codec/v2gEXIDatatypesEncoder.d
./src/codec/MethodsBag.d
# Each subdirectory must supply rules for building sources it contributes
src/codec/%.o: ../src/codec/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/din/%.o: ../src/din/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -0,0 +1,30 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/iso1/iso1EXIDatatypes.c \
../src/iso1/iso1EXIDatatypesDecoder.c \
../src/iso1/iso1EXIDatatypesEncoder.c
OBJS += \
./src/iso1/iso1EXIDatatypes.o \
./src/iso1/iso1EXIDatatypesDecoder.o \
./src/iso1/iso1EXIDatatypesEncoder.o
C_DEPS += \
./src/iso1/iso1EXIDatatypes.d \
./src/iso1/iso1EXIDatatypesDecoder.d \
./src/iso1/iso1EXIDatatypesEncoder.d
# Each subdirectory must supply rules for building sources it contributes
src/iso1/%.o: ../src/iso1/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -0,0 +1,30 @@
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/iso2/iso2EXIDatatypes.c \
../src/iso2/iso2EXIDatatypesDecoder.c \
../src/iso2/iso2EXIDatatypesEncoder.c
OBJS += \
./src/iso2/iso2EXIDatatypes.o \
./src/iso2/iso2EXIDatatypesDecoder.o \
./src/iso2/iso2EXIDatatypesEncoder.o
C_DEPS += \
./src/iso2/iso2EXIDatatypes.d \
./src/iso2/iso2EXIDatatypesDecoder.d \
./src/iso2/iso2EXIDatatypesEncoder.d
# Each subdirectory must supply rules for building sources it contributes
src/iso2/%.o: ../src/iso2/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/test/%.o: ../src/test/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -17,7 +17,7 @@ C_DEPS += \
src/transport/%.o: ../src/transport/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -23,7 +23,7 @@ C_DEPS += \
src/xmldsig/%.o: ../src/xmldsig/%.c
@echo 'Building file: $<'
@echo 'Invoking: GCC C Compiler'
gcc -I"../src/codec" -I"../src/din" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
gcc -I"../src/codec" -I"../src/din" -I"../src/iso1" -I"../src/iso2" -I"../src/xmldsig" -I"../src/appHandshake" -I"../src/transport" -I"../src/test" -Os -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
@echo 'Finished building: $<'
@echo ' '

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 2017-03-02
* @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -27,69 +27,80 @@
*
********************************************************************/
/**
* \file EXIConfig.h
* \brief EXI Configurations for the EXI Codec
*
*/
#ifndef EXI_CONFIG_H
#define EXI_CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
/** EXI stream - Option Byte Array */
#define BYTE_ARRAY 1
/** EXI stream - Option File */
#define FILE_STREAM 2
/** \brief EXI stream
*
* Byte array or file
* */
#define EXI_STREAM BYTE_ARRAY
/** Memory allocation - static */
#define STATIC_ALLOCATION 1
/** Memory allocation - dynamic */
#define DYNAMIC_ALLOCATION 2
/** */
/** \brief Memory allocation mode
*
* static or dynamic memory allocation
* */
#define MEMORY_ALLOCATION STATIC_ALLOCATION
/** String representation ASCII */
#define STRING_REPRESENTATION_ASCII 1
/** String representation Universal Character Set (UCS) */
#define STRING_REPRESENTATION_UCS 2
/** */
/** \brief String representation mode
*
* ASCII or UCS
* */
#define STRING_REPRESENTATION STRING_REPRESENTATION_ASCII
/** Maximum number of cascading elements, XML tree depth */
#define EXI_ELEMENT_STACK_SIZE 24
#ifdef __cplusplus
}
#endif
#endif /* EXI_CONFIG_H */
/**
* \file EXIConfig.h
* \brief EXI Configurations for the EXI Codec
*
*/
#ifndef EXI_CONFIG_H
#define EXI_CONFIG_H
#ifdef __cplusplus
extern "C" {
#endif
/** EXI stream - Option Byte Array */
#define BYTE_ARRAY 1
/** EXI stream - Option File */
#define FILE_STREAM 2
/** \brief EXI stream
*
* Byte array or file
* */
#define EXI_STREAM BYTE_ARRAY
/** Memory allocation - static */
#define STATIC_ALLOCATION 1
/** Memory allocation - dynamic */
#define DYNAMIC_ALLOCATION 2
/** */
/** \brief Memory allocation mode
*
* static or dynamic memory allocation
* */
#define MEMORY_ALLOCATION STATIC_ALLOCATION
/** String representation ASCII */
#define STRING_REPRESENTATION_ASCII 1
/** String representation Universal Character Set (UCS) */
#define STRING_REPRESENTATION_UCS 2
/** */
/** \brief String representation mode
*
* ASCII or UCS
* */
#define STRING_REPRESENTATION STRING_REPRESENTATION_UCS
/* in the case of ASCII an extra char (null terminator) for printf and other functions is useful */
#if STRING_REPRESENTATION == STRING_REPRESENTATION_ASCII
#define EXTRA_CHAR 1
#endif /* STRING_REPRESENTATION_ASCII */
#if STRING_REPRESENTATION == STRING_REPRESENTATION_UCS
#define EXTRA_CHAR 0
#endif /* STRING_REPRESENTATION_UCS */
/** Maximum number of cascading elements, XML tree depth */
#define EXI_ELEMENT_STACK_SIZE 24
#ifdef __cplusplus
}
#endif
#endif /* EXI_CONFIG_H */

File diff suppressed because it is too large Load diff

988
src/iso1/iso1EXIDatatypes.c Normal file
View file

@ -0,0 +1,988 @@
/*
* Copyright (C) 2007-2017 Siemens AG
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
* <p>Schema: V2G_CI_MsgDef.xsd</p>
*
*
********************************************************************/
#include <stdint.h>
#include "iso1EXIDatatypes.h"
#include "EXITypes.h"
#ifndef EXI_iso1_DATATYPES_C
#define EXI_iso1_DATATYPES_C
#if DEPLOY_ISO2_CODEC == SUPPORT_YES
void init_iso1EXIDocument(struct iso1EXIDocument* exiDoc) {
exiDoc->V2G_Message_isUsed = 0u;
exiDoc->ServiceDiscoveryReq_isUsed = 0u;
exiDoc->ServiceDiscoveryRes_isUsed = 0u;
exiDoc->MeteringReceiptReq_isUsed = 0u;
exiDoc->PaymentDetailsReq_isUsed = 0u;
exiDoc->MeteringReceiptRes_isUsed = 0u;
exiDoc->PaymentDetailsRes_isUsed = 0u;
exiDoc->SessionSetupReq_isUsed = 0u;
exiDoc->SessionSetupRes_isUsed = 0u;
exiDoc->CableCheckReq_isUsed = 0u;
exiDoc->CableCheckRes_isUsed = 0u;
exiDoc->CertificateInstallationReq_isUsed = 0u;
exiDoc->CertificateInstallationRes_isUsed = 0u;
exiDoc->WeldingDetectionReq_isUsed = 0u;
exiDoc->WeldingDetectionRes_isUsed = 0u;
exiDoc->CertificateUpdateReq_isUsed = 0u;
exiDoc->CertificateUpdateRes_isUsed = 0u;
exiDoc->PaymentServiceSelectionReq_isUsed = 0u;
exiDoc->PowerDeliveryReq_isUsed = 0u;
exiDoc->PaymentServiceSelectionRes_isUsed = 0u;
exiDoc->PowerDeliveryRes_isUsed = 0u;
exiDoc->ChargingStatusReq_isUsed = 0u;
exiDoc->ChargingStatusRes_isUsed = 0u;
exiDoc->BodyElement_isUsed = 0u;
exiDoc->CurrentDemandReq_isUsed = 0u;
exiDoc->PreChargeReq_isUsed = 0u;
exiDoc->CurrentDemandRes_isUsed = 0u;
exiDoc->PreChargeRes_isUsed = 0u;
exiDoc->SessionStopReq_isUsed = 0u;
exiDoc->AuthorizationReq_isUsed = 0u;
exiDoc->SessionStopRes_isUsed = 0u;
exiDoc->AuthorizationRes_isUsed = 0u;
exiDoc->ChargeParameterDiscoveryReq_isUsed = 0u;
exiDoc->ChargeParameterDiscoveryRes_isUsed = 0u;
exiDoc->ServiceDetailReq_isUsed = 0u;
exiDoc->ServiceDetailRes_isUsed = 0u;
exiDoc->DC_EVSEStatus_isUsed = 0u;
exiDoc->RelativeTimeInterval_isUsed = 0u;
exiDoc->SalesTariffEntry_isUsed = 0u;
exiDoc->DC_EVPowerDeliveryParameter_isUsed = 0u;
exiDoc->SASchedules_isUsed = 0u;
exiDoc->AC_EVChargeParameter_isUsed = 0u;
exiDoc->SAScheduleList_isUsed = 0u;
exiDoc->DC_EVStatus_isUsed = 0u;
exiDoc->EVStatus_isUsed = 0u;
exiDoc->DC_EVChargeParameter_isUsed = 0u;
exiDoc->DC_EVSEChargeParameter_isUsed = 0u;
exiDoc->EVSEStatus_isUsed = 0u;
exiDoc->TimeInterval_isUsed = 0u;
exiDoc->EVPowerDeliveryParameter_isUsed = 0u;
exiDoc->EVSEChargeParameter_isUsed = 0u;
exiDoc->AC_EVSEStatus_isUsed = 0u;
exiDoc->Entry_isUsed = 0u;
exiDoc->AC_EVSEChargeParameter_isUsed = 0u;
exiDoc->PMaxScheduleEntry_isUsed = 0u;
exiDoc->EVChargeParameter_isUsed = 0u;
exiDoc->SignatureProperty_isUsed = 0u;
exiDoc->DSAKeyValue_isUsed = 0u;
exiDoc->SignatureProperties_isUsed = 0u;
exiDoc->KeyValue_isUsed = 0u;
exiDoc->Transforms_isUsed = 0u;
exiDoc->DigestMethod_isUsed = 0u;
exiDoc->Signature_isUsed = 0u;
exiDoc->RetrievalMethod_isUsed = 0u;
exiDoc->Manifest_isUsed = 0u;
exiDoc->Reference_isUsed = 0u;
exiDoc->CanonicalizationMethod_isUsed = 0u;
exiDoc->RSAKeyValue_isUsed = 0u;
exiDoc->Transform_isUsed = 0u;
exiDoc->PGPData_isUsed = 0u;
exiDoc->MgmtData_isUsed = 0u;
exiDoc->SignatureMethod_isUsed = 0u;
exiDoc->KeyInfo_isUsed = 0u;
exiDoc->SPKIData_isUsed = 0u;
exiDoc->X509Data_isUsed = 0u;
exiDoc->SignatureValue_isUsed = 0u;
exiDoc->KeyName_isUsed = 0u;
exiDoc->DigestValue_isUsed = 0u;
exiDoc->SignedInfo_isUsed = 0u;
exiDoc->Object_isUsed = 0u;
}
#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
void init_iso1EXIFragment(struct iso1EXIFragment* exiFrag) {
exiFrag->ChargingComplete_isUsed = 0u;
exiFrag->EVMaxVoltage_isUsed = 0u;
exiFrag->ServiceID_isUsed = 0u;
exiFrag->ServiceID_isUsed = 0u;
exiFrag->EVRESSSOC_isUsed = 0u;
exiFrag->MeterReading_isUsed = 0u;
exiFrag->physicalValue_isUsed = 0u;
exiFrag->TimeInterval_isUsed = 0u;
exiFrag->AC_EVSEStatus_isUsed = 0u;
exiFrag->AC_EVSEStatus_isUsed = 0u;
exiFrag->EVMaxCurrent_isUsed = 0u;
exiFrag->ChargingProfileEntryStart_isUsed = 0u;
exiFrag->EVSEMaxCurrent_isUsed = 0u;
exiFrag->costKind_isUsed = 0u;
exiFrag->EAmount_isUsed = 0u;
exiFrag->EnergyTransferMode_isUsed = 0u;
exiFrag->X509SerialNumber_isUsed = 0u;
exiFrag->NumEPriceLevels_isUsed = 0u;
exiFrag->RetrievalMethod_isUsed = 0u;
exiFrag->PMax_isUsed = 0u;
exiFrag->ParameterSetID_isUsed = 0u;
exiFrag->ParameterSetID_isUsed = 0u;
exiFrag->BulkSOC_isUsed = 0u;
exiFrag->EVSEMinimumCurrentLimit_isUsed = 0u;
exiFrag->EVSEPowerLimitAchieved_isUsed = 0u;
exiFrag->SalesTariffEntry_isUsed = 0u;
exiFrag->Transforms_isUsed = 0u;
exiFrag->EVSEProcessing_isUsed = 0u;
exiFrag->EVSEProcessing_isUsed = 0u;
exiFrag->EVSEProcessing_isUsed = 0u;
exiFrag->EVSEIsolationStatus_isUsed = 0u;
exiFrag->BulkChargingComplete_isUsed = 0u;
exiFrag->SAScheduleTupleID_isUsed = 0u;
exiFrag->SAScheduleTupleID_isUsed = 0u;
exiFrag->SAScheduleTupleID_isUsed = 0u;
exiFrag->SAScheduleTupleID_isUsed = 0u;
exiFrag->FaultCode_isUsed = 0u;
exiFrag->RootCertificateID_isUsed = 0u;
exiFrag->HMACOutputLength_isUsed = 0u;
exiFrag->Exponent_isUsed = 0u;
exiFrag->X509IssuerSerial_isUsed = 0u;
exiFrag->byteValue_isUsed = 0u;
exiFrag->SPKIData_isUsed = 0u;
exiFrag->SAScheduleList_isUsed = 0u;
exiFrag->EVMaximumPowerLimit_isUsed = 0u;
exiFrag->DC_EVSEStatus_isUsed = 0u;
exiFrag->DC_EVSEStatus_isUsed = 0u;
exiFrag->DC_EVSEStatus_isUsed = 0u;
exiFrag->DC_EVSEStatus_isUsed = 0u;
exiFrag->RetryCounter_isUsed = 0u;
exiFrag->EVSEMaximumCurrentLimit_isUsed = 0u;
exiFrag->SalesTariff_isUsed = 0u;
exiFrag->PgenCounter_isUsed = 0u;
exiFrag->X509Data_isUsed = 0u;
exiFrag->EVSECurrentRegulationTolerance_isUsed = 0u;
exiFrag->KeyValue_isUsed = 0u;
exiFrag->V2G_Message_isUsed = 0u;
exiFrag->EVSEMinimumVoltageLimit_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ProfileEntry_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->ResponseCode_isUsed = 0u;
exiFrag->start_isUsed = 0u;
exiFrag->EVErrorCode_isUsed = 0u;
exiFrag->EVChargeParameter_isUsed = 0u;
exiFrag->ContractSignatureCertChain_isUsed = 0u;
exiFrag->ContractSignatureCertChain_isUsed = 0u;
exiFrag->ContractSignatureCertChain_isUsed = 0u;
exiFrag->ContractSignatureCertChain_isUsed = 0u;
exiFrag->EVSEPresentCurrent_isUsed = 0u;
exiFrag->PGPData_isUsed = 0u;
exiFrag->EVMinCurrent_isUsed = 0u;
exiFrag->FullSOC_isUsed = 0u;
exiFrag->amount_isUsed = 0u;
exiFrag->DC_EVSEChargeParameter_isUsed = 0u;
exiFrag->Entry_isUsed = 0u;
exiFrag->SessionStopRes_isUsed = 0u;
exiFrag->DC_EVSEStatus_isUsed = 0u;
exiFrag->DC_EVSEStatus_isUsed = 0u;
exiFrag->shortValue_isUsed = 0u;
exiFrag->SAProvisioningCertificateChain_isUsed = 0u;
exiFrag->SAProvisioningCertificateChain_isUsed = 0u;
exiFrag->PowerDeliveryReq_isUsed = 0u;
exiFrag->PowerDeliveryRes_isUsed = 0u;
exiFrag->SessionStopReq_isUsed = 0u;
exiFrag->SignatureProperty_isUsed = 0u;
exiFrag->SessionID_isUsed = 0u;
exiFrag->PGPKeyPacket_isUsed = 0u;
exiFrag->PGPKeyPacket_isUsed = 0u;
exiFrag->Header_isUsed = 0u;
exiFrag->Seed_isUsed = 0u;
exiFrag->RSAKeyValue_isUsed = 0u;
exiFrag->FreeService_isUsed = 0u;
exiFrag->EVSENominalVoltage_isUsed = 0u;
exiFrag->XPath_isUsed = 0u;
exiFrag->MeteringReceiptRes_isUsed = 0u;
exiFrag->ServiceDiscoveryReq_isUsed = 0u;
exiFrag->MeteringReceiptReq_isUsed = 0u;
exiFrag->PreChargeRes_isUsed = 0u;
exiFrag->OEMProvisioningCert_isUsed = 0u;
exiFrag->EVEnergyCapacity_isUsed = 0u;
exiFrag->Signature_isUsed = 0u;
exiFrag->AC_EVSEChargeParameter_isUsed = 0u;
exiFrag->ServiceDiscoveryRes_isUsed = 0u;
exiFrag->ServiceID_isUsed = 0u;
exiFrag->PreChargeReq_isUsed = 0u;
exiFrag->ServiceID_isUsed = 0u;
exiFrag->NotificationMaxDelay_isUsed = 0u;
exiFrag->CableCheckReq_isUsed = 0u;
exiFrag->SalesTariffDescription_isUsed = 0u;
exiFrag->EVSEVoltageLimitAchieved_isUsed = 0u;
exiFrag->boolValue_isUsed = 0u;
exiFrag->EVCCID_isUsed = 0u;
exiFrag->DC_EVChargeParameter_isUsed = 0u;
exiFrag->ChargingStatusReq_isUsed = 0u;
exiFrag->CableCheckRes_isUsed = 0u;
exiFrag->MgmtData_isUsed = 0u;
exiFrag->MeterInfo_isUsed = 0u;
exiFrag->MeterInfo_isUsed = 0u;
exiFrag->MeterInfo_isUsed = 0u;
exiFrag->EVSEEnergyToBeDelivered_isUsed = 0u;
exiFrag->EVSEMaxCurrent_isUsed = 0u;
exiFrag->EVSEStatus_isUsed = 0u;
exiFrag->Service_isUsed = 0u;
exiFrag->Manifest_isUsed = 0u;
exiFrag->EVMaximumVoltageLimit_isUsed = 0u;
exiFrag->P_isUsed = 0u;
exiFrag->Q_isUsed = 0u;
exiFrag->X509SubjectName_isUsed = 0u;
exiFrag->intValue_isUsed = 0u;
exiFrag->ChargingProfile_isUsed = 0u;
exiFrag->G_isUsed = 0u;
exiFrag->J_isUsed = 0u;
exiFrag->ServiceScope_isUsed = 0u;
exiFrag->ReceiptRequired_isUsed = 0u;
exiFrag->ReceiptRequired_isUsed = 0u;
exiFrag->ServiceName_isUsed = 0u;
exiFrag->MeterStatus_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->ChargingStatusRes_isUsed = 0u;
exiFrag->ServiceCategory_isUsed = 0u;
exiFrag->Notification_isUsed = 0u;
exiFrag->X509CRL_isUsed = 0u;
exiFrag->Y_isUsed = 0u;
exiFrag->EVSEPresentVoltage_isUsed = 0u;
exiFrag->EVSEPresentVoltage_isUsed = 0u;
exiFrag->EVSEPresentVoltage_isUsed = 0u;
exiFrag->DigestValue_isUsed = 0u;
exiFrag->EVSEMaximumPowerLimit_isUsed = 0u;
exiFrag->EVSETimeStamp_isUsed = 0u;
exiFrag->EVSETimeStamp_isUsed = 0u;
exiFrag->Cost_isUsed = 0u;
exiFrag->EVSEPeakCurrentRipple_isUsed = 0u;
exiFrag->ConsumptionCost_isUsed = 0u;
exiFrag->DigestMethod_isUsed = 0u;
exiFrag->SPKISexp_isUsed = 0u;
exiFrag->SessionSetupRes_isUsed = 0u;
exiFrag->EVSECurrentLimitAchieved_isUsed = 0u;
exiFrag->ServiceDetailReq_isUsed = 0u;
exiFrag->EVSEMaximumVoltageLimit_isUsed = 0u;
exiFrag->ServiceDetailRes_isUsed = 0u;
exiFrag->SignatureProperties_isUsed = 0u;
exiFrag->EPriceLevel_isUsed = 0u;
exiFrag->EVTargetCurrent_isUsed = 0u;
exiFrag->RemainingTimeToBulkSoC_isUsed = 0u;
exiFrag->EVTargetCurrent_isUsed = 0u;
exiFrag->stringValue_isUsed = 0u;
exiFrag->SessionSetupReq_isUsed = 0u;
exiFrag->Multiplier_isUsed = 0u;
exiFrag->CertificateUpdateRes_isUsed = 0u;
exiFrag->PGPKeyID_isUsed = 0u;
exiFrag->EVTargetVoltage_isUsed = 0u;
exiFrag->EVTargetVoltage_isUsed = 0u;
exiFrag->DSAKeyValue_isUsed = 0u;
exiFrag->CertificateUpdateReq_isUsed = 0u;
exiFrag->EVMaximumCurrentLimit_isUsed = 0u;
exiFrag->CanonicalizationMethod_isUsed = 0u;
exiFrag->X509Certificate_isUsed = 0u;
exiFrag->CertificateInstallationReq_isUsed = 0u;
exiFrag->CertificateInstallationRes_isUsed = 0u;
exiFrag->EVStatus_isUsed = 0u;
exiFrag->SupportedEnergyTransferMode_isUsed = 0u;
exiFrag->SignedInfo_isUsed = 0u;
exiFrag->eMAID_isUsed = 0u;
exiFrag->eMAID_isUsed = 0u;
exiFrag->eMAID_isUsed = 0u;
exiFrag->eMAID_isUsed = 0u;
exiFrag->MaxEntriesSAScheduleTuple_isUsed = 0u;
exiFrag->PaymentOption_isUsed = 0u;
exiFrag->SubCertificates_isUsed = 0u;
exiFrag->PaymentDetailsReq_isUsed = 0u;
exiFrag->AuthorizationReq_isUsed = 0u;
exiFrag->PaymentDetailsRes_isUsed = 0u;
exiFrag->AuthorizationRes_isUsed = 0u;
exiFrag->EVSEStatusCode_isUsed = 0u;
exiFrag->PaymentOptionList_isUsed = 0u;
exiFrag->SelectedServiceList_isUsed = 0u;
exiFrag->ContractSignatureEncryptedPrivateKey_isUsed = 0u;
exiFrag->ContractSignatureEncryptedPrivateKey_isUsed = 0u;
exiFrag->SAScheduleTupleID_isUsed = 0u;
exiFrag->WeldingDetectionReq_isUsed = 0u;
exiFrag->FaultMsg_isUsed = 0u;
exiFrag->WeldingDetectionRes_isUsed = 0u;
exiFrag->ChargeProgress_isUsed = 0u;
exiFrag->SelectedPaymentOption_isUsed = 0u;
exiFrag->BulkChargingComplete_isUsed = 0u;
exiFrag->EVSEID_isUsed = 0u;
exiFrag->EVSEID_isUsed = 0u;
exiFrag->ParameterSet_isUsed = 0u;
exiFrag->EVSEID_isUsed = 0u;
exiFrag->EVSEChargeParameter_isUsed = 0u;
exiFrag->SigMeterReading_isUsed = 0u;
exiFrag->SignatureValue_isUsed = 0u;
exiFrag->SASchedules_isUsed = 0u;
exiFrag->SalesTariffID_isUsed = 0u;
exiFrag->DHpublickey_isUsed = 0u;
exiFrag->DHpublickey_isUsed = 0u;
exiFrag->ServiceParameterList_isUsed = 0u;
exiFrag->ListOfRootCertificateIDs_isUsed = 0u;
exiFrag->ListOfRootCertificateIDs_isUsed = 0u;
exiFrag->MeterID_isUsed = 0u;
exiFrag->EVSEMaximumCurrentLimit_isUsed = 0u;
exiFrag->ChargeService_isUsed = 0u;
exiFrag->amountMultiplier_isUsed = 0u;
exiFrag->RCD_isUsed = 0u;
exiFrag->EVMaximumPowerLimit_isUsed = 0u;
exiFrag->startValue_isUsed = 0u;
exiFrag->CurrentDemandReq_isUsed = 0u;
exiFrag->KeyName_isUsed = 0u;
exiFrag->DC_EVPowerDeliveryParameter_isUsed = 0u;
exiFrag->Body_isUsed = 0u;
exiFrag->ChargingComplete_isUsed = 0u;
exiFrag->EVSENotification_isUsed = 0u;
exiFrag->Value_isUsed = 0u;
exiFrag->KeyInfo_isUsed = 0u;
exiFrag->GenChallenge_isUsed = 0u;
exiFrag->GenChallenge_isUsed = 0u;
exiFrag->AC_EVChargeParameter_isUsed = 0u;
exiFrag->PMaxScheduleEntry_isUsed = 0u;
exiFrag->Parameter_isUsed = 0u;
exiFrag->X509SKI_isUsed = 0u;
exiFrag->EVSEMaximumVoltageLimit_isUsed = 0u;
exiFrag->SelectedService_isUsed = 0u;
exiFrag->PaymentServiceSelectionReq_isUsed = 0u;
exiFrag->PaymentServiceSelectionRes_isUsed = 0u;
exiFrag->Certificate_isUsed = 0u;
exiFrag->Certificate_isUsed = 0u;
exiFrag->CurrentDemandRes_isUsed = 0u;
exiFrag->EVReady_isUsed = 0u;
exiFrag->EVSEMaximumPowerLimit_isUsed = 0u;
exiFrag->SignatureMethod_isUsed = 0u;
exiFrag->PMaxSchedule_isUsed = 0u;
exiFrag->ServiceCategory_isUsed = 0u;
exiFrag->Unit_isUsed = 0u;
exiFrag->X509IssuerName_isUsed = 0u;
exiFrag->Reference_isUsed = 0u;
exiFrag->ChargingProfileEntryMaxNumberOfPhasesInUse_isUsed = 0u;
exiFrag->EVPowerDeliveryParameter_isUsed = 0u;
exiFrag->ChargingProfileEntryMaxPower_isUsed = 0u;
exiFrag->ChargeParameterDiscoveryReq_isUsed = 0u;
exiFrag->duration_isUsed = 0u;
exiFrag->TMeter_isUsed = 0u;
exiFrag->ChargeParameterDiscoveryRes_isUsed = 0u;
exiFrag->EVMaximumCurrentLimit_isUsed = 0u;
exiFrag->ServiceList_isUsed = 0u;
exiFrag->AC_EVSEStatus_isUsed = 0u;
exiFrag->EVMaximumVoltageLimit_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->SAScheduleTuple_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->DC_EVStatus_isUsed = 0u;
exiFrag->BodyElement_isUsed = 0u;
exiFrag->RemainingTimeToFullSoC_isUsed = 0u;
exiFrag->RelativeTimeInterval_isUsed = 0u;
exiFrag->Transform_isUsed = 0u;
exiFrag->DepartureTime_isUsed = 0u;
exiFrag->Object_isUsed = 0u;
exiFrag->EVEnergyRequest_isUsed = 0u;
exiFrag->ServiceScope_isUsed = 0u;
exiFrag->Modulus_isUsed = 0u;
exiFrag->ChargingSession_isUsed = 0u;
exiFrag->RequestedEnergyTransferMode_isUsed = 0u;
exiFrag->SessionID_isUsed = 0u;
}
#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
void init_iso1IntervalType(struct iso1IntervalType* iso1IntervalType) {
(void)iso1IntervalType; /* avoid unused warning */
}
void init_iso1SASchedulesType(struct iso1SASchedulesType* iso1SASchedulesType) {
(void)iso1SASchedulesType; /* avoid unused warning */
}
void init_iso1PaymentOptionListType(struct iso1PaymentOptionListType* iso1PaymentOptionListType) {
iso1PaymentOptionListType->PaymentOption.arrayLen = 0u;
}
void init_iso1CertificateUpdateReqType(struct iso1CertificateUpdateReqType* iso1CertificateUpdateReqType) {
(void)iso1CertificateUpdateReqType; /* avoid unused warning */
}
void init_iso1SelectedServiceType(struct iso1SelectedServiceType* iso1SelectedServiceType) {
iso1SelectedServiceType->ParameterSetID_isUsed = 0u;
}
void init_iso1CertificateInstallationResType(struct iso1CertificateInstallationResType* iso1CertificateInstallationResType) {
(void)iso1CertificateInstallationResType; /* avoid unused warning */
}
void init_iso1SignatureMethodType(struct iso1SignatureMethodType* iso1SignatureMethodType) {
iso1SignatureMethodType->HMACOutputLength_isUsed = 0u;
iso1SignatureMethodType->ANY_isUsed = 0u;
}
void init_iso1DSAKeyValueType(struct iso1DSAKeyValueType* iso1DSAKeyValueType) {
iso1DSAKeyValueType->P_isUsed = 0u;
iso1DSAKeyValueType->Q_isUsed = 0u;
iso1DSAKeyValueType->G_isUsed = 0u;
iso1DSAKeyValueType->J_isUsed = 0u;
iso1DSAKeyValueType->Seed_isUsed = 0u;
iso1DSAKeyValueType->PgenCounter_isUsed = 0u;
}
void init_iso1CostType(struct iso1CostType* iso1CostType) {
iso1CostType->amountMultiplier_isUsed = 0u;
}
void init_iso1MeterInfoType(struct iso1MeterInfoType* iso1MeterInfoType) {
iso1MeterInfoType->MeterReading_isUsed = 0u;
iso1MeterInfoType->SigMeterReading_isUsed = 0u;
iso1MeterInfoType->MeterStatus_isUsed = 0u;
iso1MeterInfoType->TMeter_isUsed = 0u;
}
void init_iso1MeteringReceiptResType(struct iso1MeteringReceiptResType* iso1MeteringReceiptResType) {
iso1MeteringReceiptResType->EVSEStatus_isUsed = 0u;
iso1MeteringReceiptResType->AC_EVSEStatus_isUsed = 0u;
iso1MeteringReceiptResType->DC_EVSEStatus_isUsed = 0u;
}
void init_iso1CableCheckResType(struct iso1CableCheckResType* iso1CableCheckResType) {
(void)iso1CableCheckResType; /* avoid unused warning */
}
void init_iso1X509IssuerSerialType(struct iso1X509IssuerSerialType* iso1X509IssuerSerialType) {
(void)iso1X509IssuerSerialType; /* avoid unused warning */
}
void init_iso1PGPDataType(struct iso1PGPDataType* iso1PGPDataType) {
iso1PGPDataType->PGPKeyID_isUsed = 0u;
iso1PGPDataType->PGPKeyPacket_isUsed = 0u;
iso1PGPDataType->ANY_isUsed = 0u;
}
void init_iso1SignatureType(struct iso1SignatureType* iso1SignatureType) {
iso1SignatureType->Id_isUsed = 0u;
iso1SignatureType->KeyInfo_isUsed = 0u;
iso1SignatureType->Object.arrayLen = 0u;
}
void init_iso1PMaxScheduleType(struct iso1PMaxScheduleType* iso1PMaxScheduleType) {
iso1PMaxScheduleType->PMaxScheduleEntry.arrayLen = 0u;
}
void init_iso1SessionStopReqType(struct iso1SessionStopReqType* iso1SessionStopReqType) {
(void)iso1SessionStopReqType; /* avoid unused warning */
}
void init_iso1SelectedServiceListType(struct iso1SelectedServiceListType* iso1SelectedServiceListType) {
iso1SelectedServiceListType->SelectedService.arrayLen = 0u;
}
void init_iso1TransformsType(struct iso1TransformsType* iso1TransformsType) {
iso1TransformsType->Transform.arrayLen = 0u;
}
void init_iso1SignaturePropertyType(struct iso1SignaturePropertyType* iso1SignaturePropertyType) {
iso1SignaturePropertyType->Id_isUsed = 0u;
iso1SignaturePropertyType->ANY_isUsed = 0u;
}
void init_iso1ChargeParameterDiscoveryResType(struct iso1ChargeParameterDiscoveryResType* iso1ChargeParameterDiscoveryResType) {
iso1ChargeParameterDiscoveryResType->SASchedules_isUsed = 0u;
iso1ChargeParameterDiscoveryResType->SAScheduleList_isUsed = 0u;
iso1ChargeParameterDiscoveryResType->EVSEChargeParameter_isUsed = 0u;
iso1ChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 0u;
iso1ChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 0u;
}
void init_iso1ServiceDetailReqType(struct iso1ServiceDetailReqType* iso1ServiceDetailReqType) {
(void)iso1ServiceDetailReqType; /* avoid unused warning */
}
void init_iso1PowerDeliveryReqType(struct iso1PowerDeliveryReqType* iso1PowerDeliveryReqType) {
iso1PowerDeliveryReqType->ChargingProfile_isUsed = 0u;
iso1PowerDeliveryReqType->EVPowerDeliveryParameter_isUsed = 0u;
iso1PowerDeliveryReqType->DC_EVPowerDeliveryParameter_isUsed = 0u;
}
void init_iso1PaymentDetailsReqType(struct iso1PaymentDetailsReqType* iso1PaymentDetailsReqType) {
(void)iso1PaymentDetailsReqType; /* avoid unused warning */
}
void init_iso1DC_EVStatusType(struct iso1DC_EVStatusType* iso1DC_EVStatusType) {
(void)iso1DC_EVStatusType; /* avoid unused warning */
}
void init_iso1MeteringReceiptReqType(struct iso1MeteringReceiptReqType* iso1MeteringReceiptReqType) {
iso1MeteringReceiptReqType->Id_isUsed = 0u;
iso1MeteringReceiptReqType->SAScheduleTupleID_isUsed = 0u;
}
void init_iso1PowerDeliveryResType(struct iso1PowerDeliveryResType* iso1PowerDeliveryResType) {
iso1PowerDeliveryResType->EVSEStatus_isUsed = 0u;
iso1PowerDeliveryResType->AC_EVSEStatus_isUsed = 0u;
iso1PowerDeliveryResType->DC_EVSEStatus_isUsed = 0u;
}
void init_iso1DC_EVSEStatusType(struct iso1DC_EVSEStatusType* iso1DC_EVSEStatusType) {
iso1DC_EVSEStatusType->EVSEIsolationStatus_isUsed = 0u;
}
void init_iso1SignatureValueType(struct iso1SignatureValueType* iso1SignatureValueType) {
iso1SignatureValueType->Id_isUsed = 0u;
}
void init_iso1EVPowerDeliveryParameterType(struct iso1EVPowerDeliveryParameterType* iso1EVPowerDeliveryParameterType) {
(void)iso1EVPowerDeliveryParameterType; /* avoid unused warning */
}
void init_iso1PaymentServiceSelectionReqType(struct iso1PaymentServiceSelectionReqType* iso1PaymentServiceSelectionReqType) {
(void)iso1PaymentServiceSelectionReqType; /* avoid unused warning */
}
void init_iso1AuthorizationReqType(struct iso1AuthorizationReqType* iso1AuthorizationReqType) {
iso1AuthorizationReqType->Id_isUsed = 0u;
iso1AuthorizationReqType->GenChallenge_isUsed = 0u;
}
void init_iso1X509DataType(struct iso1X509DataType* iso1X509DataType) {
iso1X509DataType->X509IssuerSerial.arrayLen = 0u;
iso1X509DataType->X509SKI.arrayLen = 0u;
iso1X509DataType->X509SubjectName.arrayLen = 0u;
iso1X509DataType->X509Certificate.arrayLen = 0u;
iso1X509DataType->X509CRL.arrayLen = 0u;
iso1X509DataType->ANY_isUsed = 0u;
}
void init_iso1CurrentDemandReqType(struct iso1CurrentDemandReqType* iso1CurrentDemandReqType) {
iso1CurrentDemandReqType->EVMaximumVoltageLimit_isUsed = 0u;
iso1CurrentDemandReqType->EVMaximumCurrentLimit_isUsed = 0u;
iso1CurrentDemandReqType->EVMaximumPowerLimit_isUsed = 0u;
iso1CurrentDemandReqType->BulkChargingComplete_isUsed = 0u;
iso1CurrentDemandReqType->RemainingTimeToFullSoC_isUsed = 0u;
iso1CurrentDemandReqType->RemainingTimeToBulkSoC_isUsed = 0u;
}
void init_iso1WeldingDetectionResType(struct iso1WeldingDetectionResType* iso1WeldingDetectionResType) {
(void)iso1WeldingDetectionResType; /* avoid unused warning */
}
void init_iso1RetrievalMethodType(struct iso1RetrievalMethodType* iso1RetrievalMethodType) {
iso1RetrievalMethodType->URI_isUsed = 0u;
iso1RetrievalMethodType->Type_isUsed = 0u;
iso1RetrievalMethodType->Transforms_isUsed = 0u;
}
void init_iso1EVStatusType(struct iso1EVStatusType* iso1EVStatusType) {
(void)iso1EVStatusType; /* avoid unused warning */
}
void init_iso1EVSEChargeParameterType(struct iso1EVSEChargeParameterType* iso1EVSEChargeParameterType) {
(void)iso1EVSEChargeParameterType; /* avoid unused warning */
}
void init_iso1ListOfRootCertificateIDsType(struct iso1ListOfRootCertificateIDsType* iso1ListOfRootCertificateIDsType) {
iso1ListOfRootCertificateIDsType->RootCertificateID.arrayLen = 0u;
}
void init_iso1CertificateUpdateResType(struct iso1CertificateUpdateResType* iso1CertificateUpdateResType) {
iso1CertificateUpdateResType->RetryCounter_isUsed = 0u;
}
void init_iso1WeldingDetectionReqType(struct iso1WeldingDetectionReqType* iso1WeldingDetectionReqType) {
(void)iso1WeldingDetectionReqType; /* avoid unused warning */
}
void init_iso1AC_EVSEStatusType(struct iso1AC_EVSEStatusType* iso1AC_EVSEStatusType) {
(void)iso1AC_EVSEStatusType; /* avoid unused warning */
}
void init_iso1SubCertificatesType(struct iso1SubCertificatesType* iso1SubCertificatesType) {
iso1SubCertificatesType->Certificate.arrayLen = 0u;
}
void init_iso1ChargeParameterDiscoveryReqType(struct iso1ChargeParameterDiscoveryReqType* iso1ChargeParameterDiscoveryReqType) {
iso1ChargeParameterDiscoveryReqType->MaxEntriesSAScheduleTuple_isUsed = 0u;
iso1ChargeParameterDiscoveryReqType->EVChargeParameter_isUsed = 0u;
iso1ChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 0u;
iso1ChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 0u;
}
void init_iso1ParameterType(struct iso1ParameterType* iso1ParameterType) {
iso1ParameterType->boolValue_isUsed = 0u;
iso1ParameterType->byteValue_isUsed = 0u;
iso1ParameterType->shortValue_isUsed = 0u;
iso1ParameterType->intValue_isUsed = 0u;
iso1ParameterType->physicalValue_isUsed = 0u;
iso1ParameterType->stringValue_isUsed = 0u;
}
void init_iso1CableCheckReqType(struct iso1CableCheckReqType* iso1CableCheckReqType) {
(void)iso1CableCheckReqType; /* avoid unused warning */
}
void init_iso1KeyInfoType(struct iso1KeyInfoType* iso1KeyInfoType) {
iso1KeyInfoType->Id_isUsed = 0u;
iso1KeyInfoType->KeyName.arrayLen = 0u;
iso1KeyInfoType->KeyValue.arrayLen = 0u;
iso1KeyInfoType->RetrievalMethod.arrayLen = 0u;
iso1KeyInfoType->X509Data.arrayLen = 0u;
iso1KeyInfoType->PGPData.arrayLen = 0u;
iso1KeyInfoType->SPKIData.arrayLen = 0u;
iso1KeyInfoType->MgmtData.arrayLen = 0u;
iso1KeyInfoType->ANY_isUsed = 0u;
}
void init_iso1ServiceDiscoveryResType(struct iso1ServiceDiscoveryResType* iso1ServiceDiscoveryResType) {
iso1ServiceDiscoveryResType->ServiceList_isUsed = 0u;
}
void init_iso1SalesTariffType(struct iso1SalesTariffType* iso1SalesTariffType) {
iso1SalesTariffType->Id_isUsed = 0u;
iso1SalesTariffType->SalesTariffDescription_isUsed = 0u;
iso1SalesTariffType->NumEPriceLevels_isUsed = 0u;
iso1SalesTariffType->SalesTariffEntry.arrayLen = 0u;
}
void init_iso1PreChargeReqType(struct iso1PreChargeReqType* iso1PreChargeReqType) {
(void)iso1PreChargeReqType; /* avoid unused warning */
}
void init_iso1ServiceListType(struct iso1ServiceListType* iso1ServiceListType) {
iso1ServiceListType->Service.arrayLen = 0u;
}
void init_iso1SAScheduleTupleType(struct iso1SAScheduleTupleType* iso1SAScheduleTupleType) {
iso1SAScheduleTupleType->SalesTariff_isUsed = 0u;
}
void init_iso1ChargingStatusReqType(struct iso1ChargingStatusReqType* iso1ChargingStatusReqType) {
(void)iso1ChargingStatusReqType; /* avoid unused warning */
}
void init_iso1AC_EVSEChargeParameterType(struct iso1AC_EVSEChargeParameterType* iso1AC_EVSEChargeParameterType) {
(void)iso1AC_EVSEChargeParameterType; /* avoid unused warning */
}
void init_iso1BodyBaseType(struct iso1BodyBaseType* iso1BodyBaseType) {
(void)iso1BodyBaseType; /* avoid unused warning */
}
void init_iso1SupportedEnergyTransferModeType(struct iso1SupportedEnergyTransferModeType* iso1SupportedEnergyTransferModeType) {
iso1SupportedEnergyTransferModeType->EnergyTransferMode.arrayLen = 0u;
}
void init_iso1SignaturePropertiesType(struct iso1SignaturePropertiesType* iso1SignaturePropertiesType) {
iso1SignaturePropertiesType->Id_isUsed = 0u;
iso1SignaturePropertiesType->SignatureProperty.arrayLen = 0u;
}
void init_iso1ProfileEntryType(struct iso1ProfileEntryType* iso1ProfileEntryType) {
iso1ProfileEntryType->ChargingProfileEntryMaxNumberOfPhasesInUse_isUsed = 0u;
}
void init_iso1DC_EVPowerDeliveryParameterType(struct iso1DC_EVPowerDeliveryParameterType* iso1DC_EVPowerDeliveryParameterType) {
iso1DC_EVPowerDeliveryParameterType->BulkChargingComplete_isUsed = 0u;
}
void init_iso1DiffieHellmanPublickeyType(struct iso1DiffieHellmanPublickeyType* iso1DiffieHellmanPublickeyType) {
(void)iso1DiffieHellmanPublickeyType; /* avoid unused warning */
}
void init_iso1ChargingStatusResType(struct iso1ChargingStatusResType* iso1ChargingStatusResType) {
iso1ChargingStatusResType->EVSEMaxCurrent_isUsed = 0u;
iso1ChargingStatusResType->MeterInfo_isUsed = 0u;
iso1ChargingStatusResType->ReceiptRequired_isUsed = 0u;
}
void init_iso1AC_EVChargeParameterType(struct iso1AC_EVChargeParameterType* iso1AC_EVChargeParameterType) {
iso1AC_EVChargeParameterType->DepartureTime_isUsed = 0u;
}
void init_iso1KeyValueType(struct iso1KeyValueType* iso1KeyValueType) {
iso1KeyValueType->DSAKeyValue_isUsed = 0u;
iso1KeyValueType->RSAKeyValue_isUsed = 0u;
iso1KeyValueType->ANY_isUsed = 0u;
}
void init_iso1CertificateInstallationReqType(struct iso1CertificateInstallationReqType* iso1CertificateInstallationReqType) {
(void)iso1CertificateInstallationReqType; /* avoid unused warning */
}
void init_iso1SessionSetupResType(struct iso1SessionSetupResType* iso1SessionSetupResType) {
iso1SessionSetupResType->EVSETimeStamp_isUsed = 0u;
}
void init_iso1MessageHeaderType(struct iso1MessageHeaderType* iso1MessageHeaderType) {
iso1MessageHeaderType->Notification_isUsed = 0u;
iso1MessageHeaderType->Signature_isUsed = 0u;
}
void init_iso1SessionSetupReqType(struct iso1SessionSetupReqType* iso1SessionSetupReqType) {
(void)iso1SessionSetupReqType; /* avoid unused warning */
}
void init_iso1SAScheduleListType(struct iso1SAScheduleListType* iso1SAScheduleListType) {
iso1SAScheduleListType->SAScheduleTuple.arrayLen = 0u;
}
void init_iso1DC_EVChargeParameterType(struct iso1DC_EVChargeParameterType* iso1DC_EVChargeParameterType) {
iso1DC_EVChargeParameterType->DepartureTime_isUsed = 0u;
iso1DC_EVChargeParameterType->EVMaximumPowerLimit_isUsed = 0u;
iso1DC_EVChargeParameterType->EVEnergyCapacity_isUsed = 0u;
iso1DC_EVChargeParameterType->EVEnergyRequest_isUsed = 0u;
iso1DC_EVChargeParameterType->FullSOC_isUsed = 0u;
iso1DC_EVChargeParameterType->BulkSOC_isUsed = 0u;
}
void init_iso1SPKIDataType(struct iso1SPKIDataType* iso1SPKIDataType) {
iso1SPKIDataType->SPKISexp.arrayLen = 0u;
iso1SPKIDataType->ANY_isUsed = 0u;
}
void init_iso1SignedInfoType(struct iso1SignedInfoType* iso1SignedInfoType) {
iso1SignedInfoType->Id_isUsed = 0u;
iso1SignedInfoType->Reference.arrayLen = 0u;
}
void init_iso1ServiceDetailResType(struct iso1ServiceDetailResType* iso1ServiceDetailResType) {
iso1ServiceDetailResType->ServiceParameterList_isUsed = 0u;
}
void init_iso1RelativeTimeIntervalType(struct iso1RelativeTimeIntervalType* iso1RelativeTimeIntervalType) {
iso1RelativeTimeIntervalType->duration_isUsed = 0u;
}
void init_iso1CertificateChainType(struct iso1CertificateChainType* iso1CertificateChainType) {
iso1CertificateChainType->Id_isUsed = 0u;
iso1CertificateChainType->SubCertificates_isUsed = 0u;
}
void init_iso1ServiceType(struct iso1ServiceType* iso1ServiceType) {
iso1ServiceType->ServiceName_isUsed = 0u;
iso1ServiceType->ServiceScope_isUsed = 0u;
}
void init_iso1ObjectType(struct iso1ObjectType* iso1ObjectType) {
iso1ObjectType->Id_isUsed = 0u;
iso1ObjectType->MimeType_isUsed = 0u;
iso1ObjectType->Encoding_isUsed = 0u;
iso1ObjectType->ANY_isUsed = 0u;
}
void init_iso1RSAKeyValueType(struct iso1RSAKeyValueType* iso1RSAKeyValueType) {
(void)iso1RSAKeyValueType; /* avoid unused warning */
}
void init_iso1DigestMethodType(struct iso1DigestMethodType* iso1DigestMethodType) {
iso1DigestMethodType->ANY_isUsed = 0u;
}
void init_iso1EntryType(struct iso1EntryType* iso1EntryType) {
iso1EntryType->TimeInterval_isUsed = 0u;
iso1EntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_iso1EVSEStatusType(struct iso1EVSEStatusType* iso1EVSEStatusType) {
(void)iso1EVSEStatusType; /* avoid unused warning */
}
void init_iso1ChargeServiceType(struct iso1ChargeServiceType* iso1ChargeServiceType) {
iso1ChargeServiceType->ServiceName_isUsed = 0u;
iso1ChargeServiceType->ServiceScope_isUsed = 0u;
}
void init_iso1PreChargeResType(struct iso1PreChargeResType* iso1PreChargeResType) {
(void)iso1PreChargeResType; /* avoid unused warning */
}
void init_iso1AnonType_V2G_Message(struct iso1AnonType_V2G_Message* iso1AnonType_V2G_Message) {
(void)iso1AnonType_V2G_Message; /* avoid unused warning */
}
void init_iso1PaymentDetailsResType(struct iso1PaymentDetailsResType* iso1PaymentDetailsResType) {
(void)iso1PaymentDetailsResType; /* avoid unused warning */
}
void init_iso1ConsumptionCostType(struct iso1ConsumptionCostType* iso1ConsumptionCostType) {
iso1ConsumptionCostType->Cost.arrayLen = 0u;
}
void init_iso1ServiceParameterListType(struct iso1ServiceParameterListType* iso1ServiceParameterListType) {
iso1ServiceParameterListType->ParameterSet.arrayLen = 0u;
}
void init_iso1SessionStopResType(struct iso1SessionStopResType* iso1SessionStopResType) {
(void)iso1SessionStopResType; /* avoid unused warning */
}
void init_iso1EVChargeParameterType(struct iso1EVChargeParameterType* iso1EVChargeParameterType) {
iso1EVChargeParameterType->DepartureTime_isUsed = 0u;
}
void init_iso1PaymentServiceSelectionResType(struct iso1PaymentServiceSelectionResType* iso1PaymentServiceSelectionResType) {
(void)iso1PaymentServiceSelectionResType; /* avoid unused warning */
}
void init_iso1CurrentDemandResType(struct iso1CurrentDemandResType* iso1CurrentDemandResType) {
iso1CurrentDemandResType->EVSEMaximumVoltageLimit_isUsed = 0u;
iso1CurrentDemandResType->EVSEMaximumCurrentLimit_isUsed = 0u;
iso1CurrentDemandResType->EVSEMaximumPowerLimit_isUsed = 0u;
iso1CurrentDemandResType->MeterInfo_isUsed = 0u;
iso1CurrentDemandResType->ReceiptRequired_isUsed = 0u;
}
void init_iso1ParameterSetType(struct iso1ParameterSetType* iso1ParameterSetType) {
iso1ParameterSetType->Parameter.arrayLen = 0u;
}
void init_iso1ChargingProfileType(struct iso1ChargingProfileType* iso1ChargingProfileType) {
iso1ChargingProfileType->ProfileEntry.arrayLen = 0u;
}
void init_iso1ReferenceType(struct iso1ReferenceType* iso1ReferenceType) {
iso1ReferenceType->Id_isUsed = 0u;
iso1ReferenceType->URI_isUsed = 0u;
iso1ReferenceType->Type_isUsed = 0u;
iso1ReferenceType->Transforms_isUsed = 0u;
}
void init_iso1SalesTariffEntryType(struct iso1SalesTariffEntryType* iso1SalesTariffEntryType) {
iso1SalesTariffEntryType->TimeInterval_isUsed = 0u;
iso1SalesTariffEntryType->RelativeTimeInterval_isUsed = 0u;
iso1SalesTariffEntryType->EPriceLevel_isUsed = 0u;
iso1SalesTariffEntryType->ConsumptionCost.arrayLen = 0u;
}
void init_iso1BodyType(struct iso1BodyType* iso1BodyType) {
iso1BodyType->BodyElement_isUsed = 0u;
iso1BodyType->SessionSetupReq_isUsed = 0u;
iso1BodyType->SessionSetupRes_isUsed = 0u;
iso1BodyType->ServiceDiscoveryReq_isUsed = 0u;
iso1BodyType->ServiceDiscoveryRes_isUsed = 0u;
iso1BodyType->ServiceDetailReq_isUsed = 0u;
iso1BodyType->ServiceDetailRes_isUsed = 0u;
iso1BodyType->PaymentServiceSelectionReq_isUsed = 0u;
iso1BodyType->PaymentServiceSelectionRes_isUsed = 0u;
iso1BodyType->PaymentDetailsReq_isUsed = 0u;
iso1BodyType->PaymentDetailsRes_isUsed = 0u;
iso1BodyType->AuthorizationReq_isUsed = 0u;
iso1BodyType->AuthorizationRes_isUsed = 0u;
iso1BodyType->ChargeParameterDiscoveryReq_isUsed = 0u;
iso1BodyType->ChargeParameterDiscoveryRes_isUsed = 0u;
iso1BodyType->PowerDeliveryReq_isUsed = 0u;
iso1BodyType->PowerDeliveryRes_isUsed = 0u;
iso1BodyType->MeteringReceiptReq_isUsed = 0u;
iso1BodyType->MeteringReceiptRes_isUsed = 0u;
iso1BodyType->SessionStopReq_isUsed = 0u;
iso1BodyType->SessionStopRes_isUsed = 0u;
iso1BodyType->CertificateUpdateReq_isUsed = 0u;
iso1BodyType->CertificateUpdateRes_isUsed = 0u;
iso1BodyType->CertificateInstallationReq_isUsed = 0u;
iso1BodyType->CertificateInstallationRes_isUsed = 0u;
iso1BodyType->ChargingStatusReq_isUsed = 0u;
iso1BodyType->ChargingStatusRes_isUsed = 0u;
iso1BodyType->CableCheckReq_isUsed = 0u;
iso1BodyType->CableCheckRes_isUsed = 0u;
iso1BodyType->PreChargeReq_isUsed = 0u;
iso1BodyType->PreChargeRes_isUsed = 0u;
iso1BodyType->CurrentDemandReq_isUsed = 0u;
iso1BodyType->CurrentDemandRes_isUsed = 0u;
iso1BodyType->WeldingDetectionReq_isUsed = 0u;
iso1BodyType->WeldingDetectionRes_isUsed = 0u;
}
void init_iso1EMAIDType(struct iso1EMAIDType* iso1EMAIDType) {
(void)iso1EMAIDType; /* avoid unused warning */
}
void init_iso1ServiceDiscoveryReqType(struct iso1ServiceDiscoveryReqType* iso1ServiceDiscoveryReqType) {
iso1ServiceDiscoveryReqType->ServiceScope_isUsed = 0u;
iso1ServiceDiscoveryReqType->ServiceCategory_isUsed = 0u;
}
void init_iso1AuthorizationResType(struct iso1AuthorizationResType* iso1AuthorizationResType) {
(void)iso1AuthorizationResType; /* avoid unused warning */
}
void init_iso1NotificationType(struct iso1NotificationType* iso1NotificationType) {
iso1NotificationType->FaultMsg_isUsed = 0u;
}
void init_iso1ManifestType(struct iso1ManifestType* iso1ManifestType) {
iso1ManifestType->Id_isUsed = 0u;
iso1ManifestType->Reference.arrayLen = 0u;
}
void init_iso1ContractSignatureEncryptedPrivateKeyType(struct iso1ContractSignatureEncryptedPrivateKeyType* iso1ContractSignatureEncryptedPrivateKeyType) {
(void)iso1ContractSignatureEncryptedPrivateKeyType; /* avoid unused warning */
}
void init_iso1DC_EVSEChargeParameterType(struct iso1DC_EVSEChargeParameterType* iso1DC_EVSEChargeParameterType) {
iso1DC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed = 0u;
iso1DC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed = 0u;
}
void init_iso1CanonicalizationMethodType(struct iso1CanonicalizationMethodType* iso1CanonicalizationMethodType) {
iso1CanonicalizationMethodType->ANY_isUsed = 0u;
}
void init_iso1PMaxScheduleEntryType(struct iso1PMaxScheduleEntryType* iso1PMaxScheduleEntryType) {
iso1PMaxScheduleEntryType->TimeInterval_isUsed = 0u;
iso1PMaxScheduleEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_iso1TransformType(struct iso1TransformType* iso1TransformType) {
iso1TransformType->ANY_isUsed = 0u;
iso1TransformType->XPath.arrayLen = 0u;
}
void init_iso1PhysicalValueType(struct iso1PhysicalValueType* iso1PhysicalValueType) {
(void)iso1PhysicalValueType; /* avoid unused warning */
}
#endif /* DEPLOY_ISO2_CODEC */
#endif

2931
src/iso1/iso1EXIDatatypes.h Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 2017-03-02
* @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -35,27 +35,27 @@
*
*/
#ifndef EXI_v2g_DATATYPES_DECODER_H
#define EXI_v2g_DATATYPES_DECODER_H
#ifndef EXI_iso1_DATATYPES_DECODER_H
#define EXI_iso1_DATATYPES_DECODER_H
#ifdef __cplusplus
extern "C" {
#endif
#if DEPLOY_ISO_CODEC == SUPPORT_YES
#if DEPLOY_ISO2_CODEC == SUPPORT_YES
#include <stdint.h>
#include "EXITypes.h"
#include "v2gEXIDatatypes.h"
#include "iso1EXIDatatypes.h"
int decode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc);
int decode_iso1ExiDocument(bitstream_t* stream, struct iso1EXIDocument* exiDoc);
#if DEPLOY_ISO_CODEC_FRAGMENT == SUPPORT_YES
int decode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag);
#endif /* DEPLOY_ISO_CODEC_FRAGMENT */
#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
int decode_iso1ExiFragment(bitstream_t* stream, struct iso1EXIFragment* exiFrag);
#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
#endif /* DEPLOY_ISO_CODEC */
#endif /* DEPLOY_ISO2_CODEC */
#ifdef __cplusplus
}

File diff suppressed because one or more lines are too long

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 2017-03-02
* @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -35,29 +35,29 @@
*
*/
#ifndef EXI_v2g_DATATYPES_ENCODER_H
#define EXI_v2g_DATATYPES_ENCODER_H
#ifndef EXI_iso1_DATATYPES_ENCODER_H
#define EXI_iso1_DATATYPES_ENCODER_H
#ifdef __cplusplus
extern "C" {
#endif
#if DEPLOY_ISO_CODEC == SUPPORT_YES
#if DEPLOY_ISO2_CODEC == SUPPORT_YES
#include <stdint.h>
#include "EXITypes.h"
#include "v2gEXIDatatypes.h"
#include "iso1EXIDatatypes.h"
int encode_v2gExiDocument(bitstream_t* stream, struct v2gEXIDocument* exiDoc);
int encode_iso1ExiDocument(bitstream_t* stream, struct iso1EXIDocument* exiDoc);
#if DEPLOY_ISO_CODEC_FRAGMENT == SUPPORT_YES
int encode_v2gExiFragment(bitstream_t* stream, struct v2gEXIFragment* exiFrag);
#endif /* DEPLOY_ISO_CODEC_FRAGMENT */
#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
int encode_iso1ExiFragment(bitstream_t* stream, struct iso1EXIFragment* exiFrag);
#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
#endif /* DEPLOY_ISO_CODEC */
#endif /* DEPLOY_ISO2_CODEC */
#ifdef __cplusplus
}

1496
src/iso2/iso2EXIDatatypes.c Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,64 @@
/*
* Copyright (C) 2007-2017 Siemens AG
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
* <p>Schema: V2G_CI_MsgDef.xsd</p>
*
*
********************************************************************/
/**
* \file EXIDatatypesDecoder.h
* \brief Decoder for datatype definitions
*
*/
#ifndef EXI_iso2_DATATYPES_DECODER_H
#define EXI_iso2_DATATYPES_DECODER_H
#ifdef __cplusplus
extern "C" {
#endif
#if DEPLOY_ISO2_CODEC == SUPPORT_YES
#include <stdint.h>
#include "EXITypes.h"
#include "iso2EXIDatatypes.h"
int decode_iso2ExiDocument(bitstream_t* stream, struct iso2EXIDocument* exiDoc);
#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
int decode_iso2ExiFragment(bitstream_t* stream, struct iso2EXIFragment* exiFrag);
#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
#endif /* DEPLOY_ISO2_CODEC */
#ifdef __cplusplus
}
#endif
#endif

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,66 @@
/*
* Copyright (C) 2007-2017 Siemens AG
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 2017-03-23
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
* <p>Schema: V2G_CI_MsgDef.xsd</p>
*
*
********************************************************************/
/**
* \file EXIDatatypesEncoder.h
* \brief Encoder for datatype definitions
*
*/
#ifndef EXI_iso2_DATATYPES_ENCODER_H
#define EXI_iso2_DATATYPES_ENCODER_H
#ifdef __cplusplus
extern "C" {
#endif
#if DEPLOY_ISO2_CODEC == SUPPORT_YES
#include <stdint.h>
#include "EXITypes.h"
#include "iso2EXIDatatypes.h"
int encode_iso2ExiDocument(bitstream_t* stream, struct iso2EXIDocument* exiDoc);
#if DEPLOY_ISO2_CODEC_FRAGMENT == SUPPORT_YES
int encode_iso2ExiFragment(bitstream_t* stream, struct iso2EXIFragment* exiFrag);
#endif /* DEPLOY_ISO2_CODEC_FRAGMENT */
#endif /* DEPLOY_ISO2_CODEC */
#ifdef __cplusplus
}
#endif
#endif

View file

@ -42,9 +42,9 @@
#include <stdlib.h>
/* schema-dependent */
#include "v2gEXIDatatypes.h"
#include "v2gEXIDatatypesEncoder.h"
#include "v2gEXIDatatypesDecoder.h"
#include "iso2EXIDatatypes.h"
#include "iso2EXIDatatypesEncoder.h"
#include "iso2EXIDatatypesDecoder.h"
#include "ByteStream.h"
@ -66,7 +66,7 @@ uint8_t bufferOut[BUFFER_SIZE];
int main_databinder(int argc, char *argv[]) {
struct v2gEXIDocument exiDoc;
struct iso2EXIDocument exiDoc;
int errn = 0;
bitstream_t iStream, oStream;
@ -112,7 +112,7 @@ int main_databinder(int argc, char *argv[]) {
printf("Start decoding EXI stream to databinding layer \n");
errn = decode_v2gExiDocument(&iStream, &exiDoc);
errn = decode_iso2ExiDocument(&iStream, &exiDoc);
if (errn != 0) {
printf("Problems while decoding EXI stream, err==%d\n", errn);
return errn;
@ -130,7 +130,7 @@ int main_databinder(int argc, char *argv[]) {
oStream.capacity = 8;
printf("Start encoding databinding layer to EXI \n");
errn = encode_v2gExiDocument(&oStream, &exiDoc);
errn = encode_iso2ExiDocument(&oStream, &exiDoc);
if (errn != 0) {
printf("Problems while encoding databinding layer, err==%d\n", errn);
return errn;

View file

@ -53,11 +53,12 @@
#include "xmldsigEXIDatatypesDecoder.h"
#endif /* DEPLOY_XMLDSIG_CODEC == SUPPORT_YES */
#include "v2gEXIDatatypes.h"
#include "v2gEXIDatatypesEncoder.h"
#include "v2gEXIDatatypesDecoder.h"
/* Activate support for ISO2 */
#include "iso2EXIDatatypes.h"
#if DEPLOY_ISO2_CODEC == SUPPORT_YES
#include "iso2EXIDatatypesEncoder.h"
#include "iso2EXIDatatypesDecoder.h"
#endif /* DEPLOY_ISO2_CODEC == SUPPORT_YES */
#include "v2gtp.h"
@ -102,7 +103,7 @@ static void printASCIIString(exi_string_character_t* string, uint16_t len) {
printf("\n");
}
static void printEVSEStatus(struct v2gEVSEStatusType* status)
static void printEVSEStatus(struct iso2EVSEStatusType* status)
{
printf("\tEVSEStatus:\n");
printf("\t\tEVSENotification=%d\n", status->EVSENotification);
@ -126,10 +127,10 @@ static void copyBytes(uint8_t* from, uint16_t len, uint8_t* to) {
/* serializes EXI stream and adds V2G TP header */
static int serializeEXI2Stream(struct v2gEXIDocument* exiIn, bitstream_t* stream) {
static int serializeEXI2Stream(struct iso2EXIDocument* exiIn, bitstream_t* stream) {
int errn;
*stream->pos = V2GTP_HEADER_LENGTH; /* v2gtp header */
if( (errn = encode_v2gExiDocument(stream, exiIn)) == 0) {
if( (errn = encode_iso2ExiDocument(stream, exiIn)) == 0) {
errn = write_v2gtpHeader(stream->data, (*stream->pos)-V2GTP_HEADER_LENGTH, V2GTP_EXI_TYPE);
}
return errn;
@ -137,7 +138,7 @@ static int serializeEXI2Stream(struct v2gEXIDocument* exiIn, bitstream_t* stream
/* deserializes V2G TP header and decodes right away EXI stream */
static int deserializeStream2EXI(bitstream_t* streamIn, struct v2gEXIDocument* exi) {
static int deserializeStream2EXI(bitstream_t* streamIn, struct iso2EXIDocument* exi) {
int errn;
uint16_t payloadLength;
@ -145,7 +146,7 @@ static int deserializeStream2EXI(bitstream_t* streamIn, struct v2gEXIDocument* e
if ( (errn = read_v2gtpHeader(streamIn->data, &payloadLength)) == 0) {
*streamIn->pos += V2GTP_HEADER_LENGTH;
errn = decode_v2gExiDocument(streamIn, exi);
errn = decode_iso2ExiDocument(streamIn, exi);
}
return errn;
}
@ -286,7 +287,7 @@ static int appHandshake()
}
static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int sessionSetup(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: sessionSetup called\n" );
printf("\tReceived data:\n");
printf("\tHeader SessionID=");
@ -296,7 +297,7 @@ static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exi
exiOut->V2G_Message_isUsed = 1u;
/* generate an unique sessionID */
init_v2gMessageHeaderType(&exiOut->V2G_Message.Header);
init_iso2MessageHeaderType(&exiOut->V2G_Message.Header);
exiOut->V2G_Message.Header.SessionID.bytes[0] = 1;
exiOut->V2G_Message.Header.SessionID.bytes[1] = 2;
exiOut->V2G_Message.Header.SessionID.bytes[2] = 3;
@ -308,12 +309,12 @@ static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exi
exiOut->V2G_Message.Header.SessionID.bytesLen = 8;
/* Prepare data for EV */
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.SessionSetupRes_isUsed = 1u;
init_v2gSessionSetupResType(&exiOut->V2G_Message.Body.SessionSetupRes);
init_iso2SessionSetupResType(&exiOut->V2G_Message.Body.SessionSetupRes);
exiOut->V2G_Message.Body.SessionSetupRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.SessionSetupRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.SessionSetupRes.EVSEID.characters[0] = 0;
exiOut->V2G_Message.Body.SessionSetupRes.EVSEID.characters[1] = 20;
exiOut->V2G_Message.Body.SessionSetupRes.EVSEID.charactersLen = 2;
@ -323,7 +324,7 @@ static int sessionSetup(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exi
return 0;
}
static int serviceDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int serviceDiscovery(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int i;
printf("EVSE side: serviceDiscovery called\n" );
@ -338,17 +339,17 @@ static int serviceDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument*
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ServiceDiscoveryRes_isUsed = 1u;
init_v2gServiceDiscoveryResType(&exiOut->V2G_Message.Body.ServiceDiscoveryRes);
init_iso2ServiceDiscoveryResType(&exiOut->V2G_Message.Body.ServiceDiscoveryRes);
exiOut->V2G_Message.Body.ServiceDiscoveryRes.VASList_isUsed = 0u; /* we do not provide VAS */
exiOut->V2G_Message.Body.ServiceDiscoveryRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[0] = v2gpaymentOptionType_ExternalPayment; /* EVSE handles the payment */
exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[1] = v2gpaymentOptionType_Contract;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[0] = iso2paymentOptionType_ExternalPayment; /* EVSE handles the payment */
exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.array[1] = iso2paymentOptionType_Contract;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.PaymentOptionList.PaymentOption.arrayLen = 2;
exiOut->V2G_Message.Body.ServiceDiscoveryRes.EnergyTransferServiceList.Service.arrayLen = 1;
@ -361,7 +362,7 @@ static int serviceDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument*
}
static int serviceDetail(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int serviceDetail(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: serviceDetail called\n" );
printf("\tReceived data:\n");
@ -372,10 +373,10 @@ static int serviceDetail(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ServiceDetailRes_isUsed= 1u;
init_v2gServiceDetailResType(&exiOut->V2G_Message.Body.ServiceDetailRes);
init_iso2ServiceDetailResType(&exiOut->V2G_Message.Body.ServiceDetailRes);
exiOut->V2G_Message.Body.ServiceDetailRes.ServiceID = 1234;
@ -426,13 +427,13 @@ static int serviceDetail(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
exiOut->V2G_Message.Body.ServiceDetailRes.ServiceParameterList.ParameterSet.array[1].Parameter.array[0].physicalValue.Exponent = 1;
exiOut->V2G_Message.Body.ServiceDetailRes.ServiceParameterList.ParameterSet.array[1].Parameter.array[0].physicalValue.Value = 2;
exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = iso2responseCodeType_OK;
return 0;
}
static int paymentServiceSelection(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int paymentServiceSelection(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int i;
printf("EVSE side: paymentServiceSelection called\n" );
@ -440,7 +441,7 @@ static int paymentServiceSelection(struct v2gEXIDocument* exiIn, struct v2gEXIDo
printf("\tHeader SessionID=");
printBinaryArray(exiIn->V2G_Message.Header.SessionID.bytes, exiIn->V2G_Message.Header.SessionID.bytesLen);
if(exiIn->V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption == v2gpaymentOptionType_ExternalPayment) {
if(exiIn->V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption == iso2paymentOptionType_ExternalPayment) {
printf("\t\t SelectedPaymentOption=ExternalPayment\n");
}
@ -454,18 +455,18 @@ static int paymentServiceSelection(struct v2gEXIDocument* exiIn, struct v2gEXIDo
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PaymentServiceSelectionRes_isUsed= 1u;
init_v2gV2GResponseType(&exiOut->V2G_Message.Body.PaymentServiceSelectionRes);
init_iso2PaymentServiceSelectionResType(&exiOut->V2G_Message.Body.PaymentServiceSelectionRes);
exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.ServiceDetailRes.ResponseCode = iso2responseCodeType_OK;
return 0;
}
static int paymentDetails(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int paymentDetails(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: paymentDetails called\n" );
printf("\tReceived data:\n");
@ -478,12 +479,12 @@ static int paymentDetails(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* e
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PaymentDetailsRes_isUsed = 1u;
init_v2gPaymentDetailsResType(&exiOut->V2G_Message.Body.PaymentDetailsRes);
init_iso2PaymentDetailsResType(&exiOut->V2G_Message.Body.PaymentDetailsRes);
exiOut->V2G_Message.Body.PaymentDetailsRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.PaymentDetailsRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.PaymentDetailsRes.GenChallenge.bytesLen = 1;
exiOut->V2G_Message.Body.PaymentDetailsRes.GenChallenge.bytes[0] = 1;
exiOut->V2G_Message.Body.PaymentDetailsRes.EVSETimeStamp = 123456;
@ -492,7 +493,7 @@ static int paymentDetails(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* e
}
static int authorization(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int authorization(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE: Authorization called\n" );
printf("\tReceived data:\n");
@ -507,19 +508,19 @@ static int authorization(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.AuthorizationRes_isUsed = 1u;
init_v2gAuthorizationResType(&exiOut->V2G_Message.Body.AuthorizationRes);
init_iso2AuthorizationResType(&exiOut->V2G_Message.Body.AuthorizationRes);
exiOut->V2G_Message.Body.AuthorizationRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.AuthorizationRes.EVSEProcessing = v2gEVSEProcessingType_Finished;
exiOut->V2G_Message.Body.AuthorizationRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.AuthorizationRes.EVSEProcessing = iso2EVSEProcessingType_Finished;
return 0;
}
static int chargeParameterDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int chargeParameterDiscovery(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: chargeParameterDiscovery called\n" );
printf("\tReceived data:\n");
@ -531,20 +532,20 @@ static int chargeParameterDiscovery(struct v2gEXIDocument* exiIn, struct v2gEXID
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes_isUsed = 1u;
init_v2gChargeParameterDiscoveryResType(&exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes);
init_iso2ChargeParameterDiscoveryResType(&exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes);
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.ResponseCode = v2gresponseCodeType_OK_CertificateExpiresSoon;
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEProcessing = v2gEVSEProcessingType_Ongoing;
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.ResponseCode = iso2responseCodeType_OK_CertificateExpiresSoon;
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEProcessing = iso2EVSEProcessingType_Ongoing;
exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEEnergyTransferParameter_isUsed = 1u;
/*exiOut->V2G_Message.Body.ChargeParameterDiscoveryRes.EVSEEnergyTransferParameter = 0;*/
return 0;
}
static int powerDelivery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int powerDelivery(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: powerDelivery called\n" );
printf("\tReceived data:\n");
@ -553,40 +554,40 @@ static int powerDelivery(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* ex
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PowerDeliveryRes_isUsed = 1u;
init_v2gPowerDeliveryResType(&exiOut->V2G_Message.Body.PowerDeliveryRes);
init_iso2PowerDeliveryResType(&exiOut->V2G_Message.Body.PowerDeliveryRes);
exiOut->V2G_Message.Body.PowerDeliveryRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.PowerDeliveryRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus_isUsed = 1;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus.EVSENotification = v2gEVSENotificationType_StopCharging;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus.EVSENotification = iso2EVSENotificationType_StopCharging;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEStatus.NotificationMaxDelay=12;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEProcessing = v2gEVSEProcessingType_Ongoing_WaitingForCustomerInteraction;
exiOut->V2G_Message.Body.PowerDeliveryRes.EVSEProcessing = iso2EVSEProcessingType_Ongoing_WaitingForCustomerInteraction;
return 0;
}
static int chargingStatus(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int chargingStatus(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: chargingStatus called\n" );
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.ChargingStatusRes_isUsed = 1u;
init_v2gChargingStatusResType(&exiOut->V2G_Message.Body.ChargingStatusRes);
init_iso2ChargingStatusResType(&exiOut->V2G_Message.Body.ChargingStatusRes);
exiOut->V2G_Message.Body.ChargingStatusRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.ChargingStatusRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEID.characters[0]= 'A';
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEID.charactersLen =1;
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEStatus.EVSENotification = v2gEVSENotificationType_ReNegotiation;
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEStatus.EVSENotification = iso2EVSENotificationType_ReNegotiation;
exiOut->V2G_Message.Body.ChargingStatusRes.EVSEStatus.NotificationMaxDelay=123;
exiOut->V2G_Message.Body.ChargingStatusRes.ReceiptRequired = 1;
exiOut->V2G_Message.Body.ChargingStatusRes.ReceiptRequired_isUsed = 1;
@ -595,7 +596,7 @@ static int chargingStatus(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* e
}
static int meteringReceipt(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int meteringReceipt(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: meteringReceipt called\n" );
printf("\tReceived data:\n");
@ -608,17 +609,17 @@ static int meteringReceipt(struct v2gEXIDocument* exiIn, struct v2gEXIDocument*
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.MeteringReceiptRes_isUsed = 1u;
init_v2gV2GResponseType(&exiOut->V2G_Message.Body.MeteringReceiptRes);
init_iso2MeteringReceiptResType(&exiOut->V2G_Message.Body.MeteringReceiptRes);
exiOut->V2G_Message.Body.MeteringReceiptRes.ResponseCode = v2gresponseCodeType_FAILED;
exiOut->V2G_Message.Body.MeteringReceiptRes.ResponseCode = iso2responseCodeType_FAILED;
return 0;
}
static int sessionStop(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int sessionStop(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: sessionStop called\n" );
printf("\tReceived data:\n");
@ -628,38 +629,38 @@ static int sessionStop(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiO
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.SessionStopRes_isUsed = 1u;
init_v2gV2GResponseType(&exiOut->V2G_Message.Body.SessionStopRes);
init_iso2SessionStopResType(&exiOut->V2G_Message.Body.SessionStopRes);
exiOut->V2G_Message.Body.SessionStopRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.SessionStopRes.ResponseCode = iso2responseCodeType_OK;
return 0;
}
static int cableCheck(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int cableCheck(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: cableCheck called\n" );
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.CableCheckRes_isUsed = 1u;
init_v2gCableCheckResType(&exiOut->V2G_Message.Body.CableCheckRes);
init_iso2CableCheckResType(&exiOut->V2G_Message.Body.CableCheckRes);
exiOut->V2G_Message.Body.CableCheckRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.CableCheckRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.CableCheckRes.EVSEStatus.NotificationMaxDelay = 1234;
exiOut->V2G_Message.Body.CableCheckRes.EVSEStatus.EVSENotification= v2gEVSENotificationType_ReNegotiation;
exiOut->V2G_Message.Body.CableCheckRes.EVSEStatus.EVSENotification= iso2EVSENotificationType_ReNegotiation;
exiOut->V2G_Message.Body.CableCheckRes.EVSEProcessing = v2gEVSEProcessingType_Finished;
exiOut->V2G_Message.Body.CableCheckRes.EVSEProcessing = iso2EVSEProcessingType_Finished;
return 0;
}
static int preCharge(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int preCharge(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
printf("EVSE side: preCharge called\n" );
printf("\tReceived data:\n");
@ -669,14 +670,14 @@ static int preCharge(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut
/* Prepare data for EV */
exiOut->V2G_Message_isUsed = 1u;
init_v2gBodyType(&exiOut->V2G_Message.Body);
init_iso2BodyType(&exiOut->V2G_Message.Body);
exiOut->V2G_Message.Body.PreChargeRes_isUsed = 1u;
init_v2gPreChargeResType(&exiOut->V2G_Message.Body.PreChargeRes);
init_iso2PreChargeResType(&exiOut->V2G_Message.Body.PreChargeRes);
exiOut->V2G_Message.Body.PreChargeRes.ResponseCode = v2gresponseCodeType_OK;
exiOut->V2G_Message.Body.PreChargeRes.ResponseCode = iso2responseCodeType_OK;
exiOut->V2G_Message.Body.PreChargeRes.EVSEStatus.EVSENotification = v2gEVSENotificationType_StopCharging;
exiOut->V2G_Message.Body.PreChargeRes.EVSEStatus.EVSENotification = iso2EVSENotificationType_StopCharging;
exiOut->V2G_Message.Body.PreChargeRes.EVSEStatus.NotificationMaxDelay= 1234;
exiOut->V2G_Message.Body.PreChargeRes.EVSEPresentVoltage.Exponent = 3;
@ -687,12 +688,12 @@ static int preCharge(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut
static int create_response_message(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int create_response_message(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int errn = ERROR_UNEXPECTED_REQUEST_MESSAGE;
/* create response message as EXI document */
if(exiIn->V2G_Message_isUsed) {
init_v2gEXIDocument(exiOut);
init_iso2EXIDocument(exiOut);
if (exiIn->V2G_Message.Body.SessionSetupReq_isUsed) {
errn = sessionSetup(exiIn, exiOut);
} else if (exiIn->V2G_Message.Body.ServiceDiscoveryReq_isUsed) {
@ -727,7 +728,7 @@ static int create_response_message(struct v2gEXIDocument* exiIn, struct v2gEXIDo
/* Adapt this to your system setup! */
/* In this situation EV and EVSE is the same party */
static int request_response(struct v2gEXIDocument* exiIn, struct v2gEXIDocument* exiOut) {
static int request_response(struct iso2EXIDocument* exiIn, struct iso2EXIDocument* exiOut) {
int errn;
bitstream_t stream1;
@ -779,17 +780,17 @@ static int charging()
int errn = 0;
int i, j;
struct v2gEXIDocument exiIn;
struct v2gEXIDocument exiOut;
struct iso2EXIDocument exiIn;
struct iso2EXIDocument exiOut;
struct v2gServiceDetailResType serviceDetailRes;
struct v2gV2GResponseType paymentServiceSelectionRes;
struct v2gPaymentDetailsResType paymentDetailsRes;
struct iso2ServiceDetailResType serviceDetailRes;
struct iso2PaymentServiceSelectionResType paymentServiceSelectionRes;
struct iso2PaymentDetailsResType paymentDetailsRes;
/* setup header information */
init_v2gEXIDocument(&exiIn);
init_iso2EXIDocument(&exiIn);
exiIn.V2G_Message_isUsed = 1u;
init_v2gMessageHeaderType(&exiIn.V2G_Message.Header);
init_iso2MessageHeaderType(&exiIn.V2G_Message.Header);
exiIn.V2G_Message.Header.SessionID.bytes[0] = 0; /* sessionID is always '0' at the beginning (the response contains the valid sessionID)*/
exiIn.V2G_Message.Header.SessionID.bytes[1] = 0;
exiIn.V2G_Message.Header.SessionID.bytes[2] = 0;
@ -805,10 +806,10 @@ static int charging()
/************************
* sessionSetup *
************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.SessionSetupReq_isUsed = 1u;
init_v2gSessionSetupReqType(&exiIn.V2G_Message.Body.SessionSetupReq);
init_iso2SessionSetupReqType(&exiIn.V2G_Message.Body.SessionSetupReq);
exiIn.V2G_Message.Body.SessionSetupReq.EVCCID.bytesLen = 1;
exiIn.V2G_Message.Body.SessionSetupReq.EVCCID.bytes[0] = 10;
@ -839,14 +840,14 @@ static int charging()
/*******************************************
* serviceDiscovery *
*******************************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ServiceDiscoveryReq_isUsed = 1u;
init_v2gServiceDiscoveryReqType(&exiIn.V2G_Message.Body.ServiceDiscoveryReq);
init_iso2ServiceDiscoveryReqType(&exiIn.V2G_Message.Body.ServiceDiscoveryReq);
exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs_isUsed = 1u;
exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs.ServiceID.arrayLen = 1;
exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs.ServiceID.array[0] = v2gserviceCategoryType_Internet;
exiIn.V2G_Message.Body.ServiceDiscoveryReq.SupportedServiceIDs.ServiceID.array[0] = iso2serviceCategoryType_Internet;
printf("EV side: call EVSE serviceDiscovery");
@ -904,10 +905,10 @@ static int charging()
/*********************************
* ServiceDetails *
*********************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ServiceDetailReq_isUsed = 1u;
init_v2gServiceDetailReqType(&exiIn.V2G_Message.Body.ServiceDetailReq);
init_iso2ServiceDetailReqType(&exiIn.V2G_Message.Body.ServiceDetailReq);
exiIn.V2G_Message.Body.ServiceDetailReq.ServiceID = 22; /* Value Added Server ID */
@ -962,12 +963,12 @@ static int charging()
/*******************************************
* ServicePaymentSelection *
*******************************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PaymentServiceSelectionReq_isUsed = 1u;
init_v2gPaymentServiceSelectionReqType(&exiIn.V2G_Message.Body.PaymentServiceSelectionReq);
init_iso2PaymentServiceSelectionReqType(&exiIn.V2G_Message.Body.PaymentServiceSelectionReq);
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption = v2gpaymentOptionType_ExternalPayment;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedPaymentOption = iso2paymentOptionType_ExternalPayment;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedVASList_isUsed = 0u;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedEnergyTransferService.ServiceID = 1;
exiIn.V2G_Message.Body.PaymentServiceSelectionReq.SelectedEnergyTransferService.ParameterSetID = 4;
@ -1001,10 +1002,10 @@ static int charging()
/**********************************
* PaymentDetails *
**********************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PaymentDetailsReq_isUsed = 1u;
init_v2gPaymentDetailsReqType(&exiIn.V2G_Message.Body.PaymentDetailsReq);
init_iso2PaymentDetailsReqType(&exiIn.V2G_Message.Body.PaymentDetailsReq);
exiIn.V2G_Message.Body.PaymentDetailsReq.eMAID.characters[0] = 1;
exiIn.V2G_Message.Body.PaymentDetailsReq.eMAID.characters[1] = 123;
@ -1059,10 +1060,10 @@ static int charging()
/*******************************************
* Authorization *
*******************************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.AuthorizationReq_isUsed = 1u;
init_v2gAuthorizationReqType(&exiIn.V2G_Message.Body.AuthorizationReq);
init_iso2AuthorizationReqType(&exiIn.V2G_Message.Body.AuthorizationReq);
copyBytes(paymentDetailsRes.GenChallenge.bytes, paymentDetailsRes.GenChallenge.bytesLen, exiIn.V2G_Message.Body.AuthorizationReq.GenChallenge.bytes);
exiIn.V2G_Message.Body.AuthorizationReq.GenChallenge.bytesLen = paymentDetailsRes.GenChallenge.bytesLen;
@ -1088,7 +1089,7 @@ static int charging()
printBinaryArray(exiOut.V2G_Message.Header.SessionID.bytes, exiOut.V2G_Message.Header.SessionID.bytesLen);
printf("\t ResponseCode=%d\n", exiOut.V2G_Message.Body.AuthorizationRes.ResponseCode);
if(exiOut.V2G_Message.Body.AuthorizationRes.EVSEProcessing == v2gEVSEProcessingType_Finished) {
if(exiOut.V2G_Message.Body.AuthorizationRes.EVSEProcessing == iso2EVSEProcessingType_Finished) {
printf("\t EVSEProcessing=Finished\n");
}
} else {
@ -1105,10 +1106,10 @@ static int charging()
/*******************************************
* chargeParameterDiscovery *
*******************************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq_isUsed = 1u;
init_v2gChargeParameterDiscoveryReqType(&exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq);
init_iso2ChargeParameterDiscoveryReqType(&exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq);
/* we use here AC based charging parameters */
exiIn.V2G_Message.Body.ChargeParameterDiscoveryReq.MaxSupportingPoints_isUsed = 1u;
@ -1171,7 +1172,7 @@ static int charging()
/*****************************
* cableCheck *
*****************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.CableCheckReq_isUsed = 1u;
/*init_v2gCableCheckReqType(&exiIn.V2G_Message.Body.CableCheckReq);*/
@ -1190,7 +1191,7 @@ static int charging()
printBinaryArray(exiOut.V2G_Message.Header.SessionID.bytes, exiOut.V2G_Message.Header.SessionID.bytesLen);
printf("\t ResponseCode=%d\n", exiOut.V2G_Message.Body.CableCheckRes.ResponseCode);
if(exiOut.V2G_Message.Body.CableCheckRes.EVSEProcessing==v2gEVSEProcessingType_Finished) {
if(exiOut.V2G_Message.Body.CableCheckRes.EVSEProcessing==iso2EVSEProcessingType_Finished) {
printf("\tEVSEProcessing=Finished\n");
}
@ -1208,10 +1209,10 @@ static int charging()
/*****************************
* preCharge *
*****************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PreChargeReq_isUsed = 1u;
init_v2gPreChargeReqType(&exiIn.V2G_Message.Body.PreChargeReq);
init_iso2PreChargeReqType(&exiIn.V2G_Message.Body.PreChargeReq);
exiIn.V2G_Message.Body.PreChargeReq.EVTargetCurrent.Exponent = 1;
exiIn.V2G_Message.Body.PreChargeReq.EVTargetCurrent.Value = 234;
@ -1250,12 +1251,12 @@ static int charging()
* PowerDelivery *
*********************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.PowerDeliveryReq_isUsed = 1u;
init_v2gPowerDeliveryReqType(&exiIn.V2G_Message.Body.PowerDeliveryReq);
init_iso2PowerDeliveryReqType(&exiIn.V2G_Message.Body.PowerDeliveryReq);
exiIn.V2G_Message.Body.PowerDeliveryReq.ChargeProgress = v2gchargeProgressType_Start;
exiIn.V2G_Message.Body.PowerDeliveryReq.ChargeProgress = iso2chargeProgressType_Start;
exiIn.V2G_Message.Body.PowerDeliveryReq.SAScheduleTupleID_isUsed = 1u;
exiIn.V2G_Message.Body.PowerDeliveryReq.SAScheduleTupleID = exiOut.V2G_Message.Body.ChargeParameterDiscoveryRes.SAScheduleList.SAScheduleTuple.array[0].SAScheduleTupleID;
@ -1288,10 +1289,10 @@ static int charging()
* Setup data for chargingStatus *
*********************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.ChargingStatusReq_isUsed = 1u;
init_v2gChargingStatusReqType(&exiIn.V2G_Message.Body.ChargingStatusReq);
init_iso2ChargingStatusReqType(&exiIn.V2G_Message.Body.ChargingStatusReq);
exiIn.V2G_Message.Body.ChargingStatusReq.EVTargetEnergyRequest.Exponent = 2;
exiIn.V2G_Message.Body.ChargingStatusReq.EVTargetEnergyRequest.Value = 100;
@ -1336,10 +1337,10 @@ static int charging()
* MeteringReceipt *
***********************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.MeteringReceiptReq_isUsed = 1u;
init_v2gMeteringReceiptReqType(&exiIn.V2G_Message.Body.MeteringReceiptReq);
init_iso2MeteringReceiptReqType(&exiIn.V2G_Message.Body.MeteringReceiptReq);
exiIn.V2G_Message.Body.MeteringReceiptReq.Id.characters[0]='I';
@ -1350,7 +1351,7 @@ static int charging()
exiIn.V2G_Message.Body.MeteringReceiptReq.SessionID.bytes[0] = 22;
exiIn.V2G_Message.Body.MeteringReceiptReq.SessionID.bytesLen = 1;
init_v2gMeterInfoType(&exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo);
init_iso2MeterInfoType(&exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo);
exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo.MeterID.characters[0] = 'M';
exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo.MeterID.characters[1] = 'i';
exiIn.V2G_Message.Body.MeteringReceiptReq.MeterInfo.MeterID.characters[2] = 'd';
@ -1385,11 +1386,11 @@ static int charging()
***********************************/
init_v2gBodyType(&exiIn.V2G_Message.Body);
init_iso2BodyType(&exiIn.V2G_Message.Body);
exiIn.V2G_Message.Body.SessionStopReq_isUsed = 1u;
init_v2gSessionStopReqType(&exiIn.V2G_Message.Body.SessionStopReq);
exiIn.V2G_Message.Body.SessionStopReq.ChargingSession = v2gchargingSessionType_Pause;
init_iso2SessionStopReqType(&exiIn.V2G_Message.Body.SessionStopReq);
exiIn.V2G_Message.Body.SessionStopReq.ChargingSession = iso2chargingSessionType_Pause;
printf("EV side: call EVSE stopSession \n");
@ -1571,7 +1572,7 @@ static int xmldsig_test() {
stream2.data = buffer2;
stream2.pos = &pos2;
struct v2gEXIFragment exiV2G_AR;
struct iso2EXIFragment exiV2G_AR;
struct xmldsigEXIFragment exiXMLDSIG_SI;
int sizeIsoStream1 = 25;
@ -1590,9 +1591,9 @@ static int xmldsig_test() {
</v2gci_b:AuthorizationReq>
*/
init_v2gEXIFragment(&exiV2G_AR);
init_iso2EXIFragment(&exiV2G_AR);
exiV2G_AR.AuthorizationReq_isUsed = 1u;
init_v2gAuthorizationReqType(&exiV2G_AR.AuthorizationReq);
init_iso2AuthorizationReqType(&exiV2G_AR.AuthorizationReq);
exiV2G_AR.AuthorizationReq.Id_isUsed = 1;
exiV2G_AR.AuthorizationReq.Id.charactersLen = 3;
exiV2G_AR.AuthorizationReq.Id.characters[0] = 'I';
@ -1619,7 +1620,7 @@ static int xmldsig_test() {
exiV2G_AR.AuthorizationReq.GenChallenge.bytes[15] = 0x61;
/* encode fragment with ISO schema */
errn = encode_v2gExiFragment(&stream1, &exiV2G_AR);
errn = encode_iso2ExiFragment(&stream1, &exiV2G_AR);
if((*stream1.pos) != sizeIsoStream1) {
errn = -1;