* adds support for DIN

* get ready for next release
This commit is contained in:
daniel_peintner 2014-08-27 14:50:53 +00:00
parent ec788ea866
commit 5524e62bf0
48 changed files with 50598 additions and 22689 deletions

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -45,6 +45,10 @@ void init_appHandEXIDocument(struct appHandEXIDocument* exiDoc) {
exiDoc->supportedAppProtocolRes_isUsed = 0u;
}
void init_appHandAnonType_supportedAppProtocolRes(struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes) {
appHandAnonType_supportedAppProtocolRes->SchemaID_isUsed = 0u;
}
void init_appHandAppProtocolType(struct appHandAppProtocolType* appHandAppProtocolType) {
}
@ -52,10 +56,6 @@ void init_appHandAnonType_supportedAppProtocolReq(struct appHandAnonType_support
appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen = 0u;
}
void init_appHandAnonType_supportedAppProtocolRes(struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes) {
appHandAnonType_supportedAppProtocolRes->SchemaID_isUsed = 0u;
}

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -74,15 +74,6 @@ struct appHandAppProtocolType {
uint8_t Priority ;
};
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolRes', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ResponseCode,SchemaID{0-1})', derivedBy='RESTRICTION'. */
struct appHandAnonType_supportedAppProtocolRes {
/* element: ResponseCode, urn:iso:15118:2:2010:AppProtocol,responseCodeType */
appHandresponseCodeType ResponseCode ;
/* element: SchemaID, urn:iso:15118:2:2010:AppProtocol,idType */
uint8_t SchemaID ;
unsigned int SchemaID_isUsed:1;
};
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolReq', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(AppProtocol{1-20})', derivedBy='RESTRICTION'. */
#define appHandAnonType_supportedAppProtocolReq_AppProtocol_ARRAY_SIZE 5
struct appHandAnonType_supportedAppProtocolReq {
@ -93,6 +84,15 @@ struct appHandAnonType_supportedAppProtocolReq {
} AppProtocol;
};
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolRes', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ResponseCode,SchemaID{0-1})', derivedBy='RESTRICTION'. */
struct appHandAnonType_supportedAppProtocolRes {
/* element: ResponseCode, urn:iso:15118:2:2010:AppProtocol,responseCodeType */
appHandresponseCodeType ResponseCode ;
/* element: SchemaID, urn:iso:15118:2:2010:AppProtocol,idType */
uint8_t SchemaID ;
unsigned int SchemaID_isUsed:1;
};
@ -118,9 +118,9 @@ struct appHandEXIDocument {
/* Initialization methods for structs */
void init_appHandEXIDocument(struct appHandEXIDocument* exiDoc);
void init_appHandAnonType_supportedAppProtocolRes(struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes);
void init_appHandAppProtocolType(struct appHandAppProtocolType* appHandAppProtocolType);
void init_appHandAnonType_supportedAppProtocolReq(struct appHandAnonType_supportedAppProtocolReq* appHandAnonType_supportedAppProtocolReq);
void init_appHandAnonType_supportedAppProtocolRes(struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes);
#ifdef __cplusplus

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -48,23 +48,129 @@ static uint32_t uint32;
/* Forward Declarations */
static int decode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes);
static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppProtocolType* appHandAppProtocolType);
static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolReq* appHandAnonType_supportedAppProtocolReq);
static int decode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes);
/* Deviant data decoding (skip functions) */
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,AppProtocolType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ProtocolNamespace,VersionNumberMajor,VersionNumberMinor,SchemaID,Priority)', derivedBy='RESTRICTION'. */
static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppProtocolType* appHandAppProtocolType) {
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolRes', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ResponseCode,SchemaID{0-1})', derivedBy='RESTRICTION'. */
static int decode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes) {
int grammarID = 0;
int done = 0;
init_appHandAnonType_supportedAppProtocolRes(appHandAnonType_supportedAppProtocolRes);
while(!done) {
switch(grammarID) {
case 0:
/* FirstStartTag[START_ELEMENT(ResponseCode)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &uint32);
appHandAnonType_supportedAppProtocolRes->ResponseCode = (appHandresponseCodeType) uint32;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
}
}
if(errn == 0) {
/* valid EE for simple element START_ELEMENT(ResponseCode) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 1;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
}
}
break;
case 1:
/* Element[START_ELEMENT(SchemaID), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
appHandAnonType_supportedAppProtocolRes->SchemaID = (uint8_t)(uint32 + 0);
appHandAnonType_supportedAppProtocolRes->SchemaID_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
}
}
if(errn == 0) {
/* valid EE for simple element START_ELEMENT(SchemaID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 2;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
}
break;
case 1:
done = 1;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
}
}
break;
case 2:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
}
}
break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
}
if(errn) {
done = 1;
}
}
return errn;
}
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,AppProtocolType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ProtocolNamespace,VersionNumberMajor,VersionNumberMinor,SchemaID,Priority)', derivedBy='RESTRICTION'. */
static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppProtocolType* appHandAppProtocolType) {
int grammarID = 4;
int done = 0;
init_appHandAppProtocolType(appHandAppProtocolType);
while(!done) {
switch(grammarID) {
case 0:
case 4:
/* FirstStartTag[START_ELEMENT(ProtocolNamespace)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@ -96,7 +202,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* valid EE for simple element START_ELEMENT(ProtocolNamespace) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 1;
grammarID = 5;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@ -108,7 +214,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
}
}
break;
case 1:
case 5:
/* Element[START_ELEMENT(VersionNumberMajor)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@ -128,7 +234,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* valid EE for simple element START_ELEMENT(VersionNumberMajor) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 2;
grammarID = 6;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@ -140,7 +246,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
}
}
break;
case 2:
case 6:
/* Element[START_ELEMENT(VersionNumberMinor)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@ -160,7 +266,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* valid EE for simple element START_ELEMENT(VersionNumberMinor) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 3;
grammarID = 7;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@ -172,7 +278,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
}
}
break;
case 3:
case 7:
/* Element[START_ELEMENT(SchemaID)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@ -193,7 +299,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* valid EE for simple element START_ELEMENT(SchemaID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 4;
grammarID = 8;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@ -205,7 +311,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
}
}
break;
case 4:
case 8:
/* Element[START_ELEMENT(Priority)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
@ -226,7 +332,7 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* valid EE for simple element START_ELEMENT(Priority) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 5;
grammarID = 2;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
@ -238,14 +344,14 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
}
}
break;
case 5:
case 2:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -266,58 +372,16 @@ static int decode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolReq', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(AppProtocol{1-20})', derivedBy='RESTRICTION'. */
static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolReq* appHandAnonType_supportedAppProtocolReq) {
int grammarID = 7;
int grammarID = 9;
int done = 0;
init_appHandAnonType_supportedAppProtocolReq(appHandAnonType_supportedAppProtocolReq);
while(!done) {
switch(grammarID) {
case 7:
case 9:
/* FirstStartTag[START_ELEMENT(AppProtocol)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
if (appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen < appHandAnonType_supportedAppProtocolReq_AppProtocol_ARRAY_SIZE) {
errn = decode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array[appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen++]);
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
grammarID = 8;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
}
}
break;
case 8:
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
if (appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen < appHandAnonType_supportedAppProtocolReq_AppProtocol_ARRAY_SIZE) {
errn = decode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array[appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen++]);
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
grammarID = 9;
break;
case 1:
done = 1;
grammarID = 6;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
}
}
break;
case 9:
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
@ -328,10 +392,6 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
}
grammarID = 10;
break;
case 1:
done = 1;
grammarID = 6;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
@ -353,7 +413,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -376,7 +436,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -399,7 +459,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -422,7 +482,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -445,7 +505,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -468,7 +528,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -491,7 +551,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -514,7 +574,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -537,7 +597,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -560,7 +620,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -583,7 +643,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -606,7 +666,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -629,7 +689,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -652,7 +712,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -675,7 +735,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -698,7 +758,7 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -717,11 +777,11 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
grammarID = 5;
grammarID = 27;
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -729,66 +789,22 @@ static int decode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
}
}
break;
case 5:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
grammarID = 6;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
break;
}
}
break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
}
if(errn) {
done = 1;
}
}
return errn;
}
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolRes', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ResponseCode,SchemaID{0-1})', derivedBy='RESTRICTION'. */
static int decode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes) {
int grammarID = 27;
int done = 0;
init_appHandAnonType_supportedAppProtocolRes(appHandAnonType_supportedAppProtocolRes);
while(!done) {
switch(grammarID) {
case 27:
/* FirstStartTag[START_ELEMENT(ResponseCode)] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 2, &appHandAnonType_supportedAppProtocolRes->ResponseCode);
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
}
}
if(errn == 0) {
/* valid EE for simple element START_ELEMENT(ResponseCode) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 28;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
if (appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen < appHandAnonType_supportedAppProtocolReq_AppProtocol_ARRAY_SIZE) {
errn = decode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array[appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen++]);
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
grammarID = 28;
break;
case 1:
done = 1;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -797,36 +813,21 @@ static int decode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, s
}
break;
case 28:
/* Element[START_ELEMENT(SchemaID), END_ELEMENT] */
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 2, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(errn == 0) {
if(eventCode == 0) {
errn = decodeNBitUnsignedInteger(stream, 8, &(uint32));
appHandAnonType_supportedAppProtocolRes->SchemaID = (uint8_t)(uint32 + 0);
appHandAnonType_supportedAppProtocolRes->SchemaID_isUsed = 1u;
} else {
/* Second level event (e.g., xsi:type, xsi:nil, ...) */
errn = EXI_UNSUPPORTED_EVENT_CODE_CHARACTERISTICS;
}
}
if(errn == 0) {
/* valid EE for simple element START_ELEMENT(SchemaID) ? */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if(eventCode == 0) {
grammarID = 5;
} else {
errn = EXI_DEVIANT_SUPPORT_NOT_DEPLOYED; /* or also typecast and nillable */
}
if (appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen < appHandAnonType_supportedAppProtocolReq_AppProtocol_ARRAY_SIZE) {
errn = decode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array[appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen++]);
} else {
errn = EXI_ERROR_OUT_OF_BOUNDS;
}
grammarID = 2;
break;
case 1:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;
@ -834,14 +835,14 @@ static int decode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, s
}
}
break;
case 5:
case 2:
/* Element[END_ELEMENT] */
errn = decodeNBitUnsignedInteger(stream, 1, &eventCode);
if (errn == 0) {
switch(eventCode) {
case 0:
done = 1;
grammarID = 6;
grammarID = 3;
break;
default:
errn = EXI_ERROR_UNKOWN_EVENT_CODE;

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -44,13 +44,13 @@
static int errn;
/* Forward Declarations */
static int encode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes);
static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppProtocolType* appHandAppProtocolType);
static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolReq* appHandAnonType_supportedAppProtocolReq);
static int encode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes);
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,AppProtocolType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ProtocolNamespace,VersionNumberMajor,VersionNumberMinor,SchemaID,Priority)', derivedBy='RESTRICTION'. */
static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppProtocolType* appHandAppProtocolType) {
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolRes', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ResponseCode,SchemaID{0-1})', derivedBy='RESTRICTION'. */
static int encode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes) {
int grammarID = 0;
int done = 0;
@ -58,6 +58,79 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
while(!done) {
switch(grammarID) {
case 0:
/* FirstStartTag[START_ELEMENT(ResponseCode)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
errn = encodeNBitUnsignedInteger(stream, 2, appHandAnonType_supportedAppProtocolRes->ResponseCode);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 1;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 1:
/* Element[START_ELEMENT(SchemaID), END_ELEMENT] */
if ( appHandAnonType_supportedAppProtocolRes->SchemaID_isUsed == 1u ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(appHandAnonType_supportedAppProtocolRes->SchemaID - 0));
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 2;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 2:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
done = 1;
}
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
}
if(errn) {
done = 1;
}
}
return errn;
}
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,AppProtocolType', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ProtocolNamespace,VersionNumberMajor,VersionNumberMinor,SchemaID,Priority)', derivedBy='RESTRICTION'. */
static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppProtocolType* appHandAppProtocolType) {
int grammarID = 4;
int done = 0;
while(!done) {
switch(grammarID) {
case 4:
/* FirstStartTag[START_ELEMENT(ProtocolNamespace)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@ -74,12 +147,12 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 1;
grammarID = 5;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 1:
case 5:
/* Element[START_ELEMENT(VersionNumberMajor)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@ -92,12 +165,12 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 2;
grammarID = 6;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 2:
case 6:
/* Element[START_ELEMENT(VersionNumberMinor)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@ -110,12 +183,12 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 3;
grammarID = 7;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 3:
case 7:
/* Element[START_ELEMENT(SchemaID)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@ -128,12 +201,12 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 4;
grammarID = 8;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 4:
case 8:
/* Element[START_ELEMENT(Priority)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
@ -146,19 +219,19 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 5;
grammarID = 2;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 5:
case 2:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -176,57 +249,21 @@ static int encode_appHandAppProtocolType(bitstream_t* stream, struct appHandAppP
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolReq', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(AppProtocol{1-20})', derivedBy='RESTRICTION'. */
static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolReq* appHandAnonType_supportedAppProtocolReq) {
int grammarID = 7;
int grammarID = 9;
int done = 0;
unsigned int appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex = 0;
while(!done) {
switch(grammarID) {
case 7:
case 9:
/* FirstStartTag[START_ELEMENT(AppProtocol)] */
if (appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex < appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
errn = encode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array [appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex++]);
}
grammarID = 8;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 8:
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
if (appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex < appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
errn = encode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array [appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex++]);
}
grammarID = 9;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
grammarID = 6;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 9:
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
if (appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex < appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
errn = encode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array [appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex++]);
}
grammarID = 10;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
grammarID = 6;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -244,7 +281,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -262,7 +299,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -280,7 +317,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -298,7 +335,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -316,7 +353,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -334,7 +371,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -352,7 +389,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -370,7 +407,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -388,7 +425,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -406,7 +443,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -424,7 +461,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -442,7 +479,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -460,7 +497,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -478,7 +515,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -496,7 +533,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -514,7 +551,7 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
@ -526,98 +563,61 @@ static int encode_appHandAnonType_supportedAppProtocolReq(bitstream_t* stream, s
if(errn == 0) {
errn = encode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array [appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex++]);
}
grammarID = 5;
grammarID = 27;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 5:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
case 27:
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
if (appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex < appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
errn = encode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array [appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex++]);
}
grammarID = 28;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
grammarID = 6;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
default:
errn = EXI_ERROR_UNKOWN_GRAMMAR_ID;
break;
}
if(errn) {
done = 1;
}
}
return errn;
}
/* Complex type name='urn:iso:15118:2:2010:AppProtocol,#AnonType_supportedAppProtocolRes', base type name='anyType', content type='ELEMENT', isAbstract='false', hasTypeId='false', final='0', block='0', particle='(ResponseCode,SchemaID{0-1})', derivedBy='RESTRICTION'. */
static int encode_appHandAnonType_supportedAppProtocolRes(bitstream_t* stream, struct appHandAnonType_supportedAppProtocolRes* appHandAnonType_supportedAppProtocolRes) {
int grammarID = 27;
int done = 0;
while(!done) {
switch(grammarID) {
case 27:
/* FirstStartTag[START_ELEMENT(ResponseCode)] */
if ( 1 == 1 ) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[ENUMERATION]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
errn = encodeNBitUnsignedInteger(stream, 2, appHandAnonType_supportedAppProtocolRes->ResponseCode);
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
}
grammarID = 28;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 28:
/* Element[START_ELEMENT(SchemaID), END_ELEMENT] */
if ( appHandAnonType_supportedAppProtocolRes->SchemaID_isUsed == 1u ) {
/* Element[START_ELEMENT(AppProtocol), END_ELEMENT] */
if (appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex < appHandAnonType_supportedAppProtocolReq->AppProtocol.arrayLen ) {
errn = encodeNBitUnsignedInteger(stream, 2, 0);
if(errn == 0) {
/* FirstStartTag[CHARACTERS[NBIT_UNSIGNED_INTEGER]] */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
errn = encodeNBitUnsignedInteger(stream, 8, (uint32_t)(appHandAnonType_supportedAppProtocolRes->SchemaID - 0));
/* valid EE */
errn = encodeNBitUnsignedInteger(stream, 1, 0);
}
errn = encode_appHandAppProtocolType(stream, &appHandAnonType_supportedAppProtocolReq->AppProtocol.array [appHandAnonType_supportedAppProtocolReq_AppProtocol_currArrayIndex++]);
}
grammarID = 5;
grammarID = 2;
} else if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 2, 1);
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}
break;
case 5:
case 2:
/* Element[END_ELEMENT] */
if (1==1) {
errn = encodeNBitUnsignedInteger(stream, 1, 0);
if(errn == 0) {
done = 1;
}
grammarID = 6;
grammarID = 3;
} else {
errn = EXI_ERROR_UNKOWN_EVENT;
}

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -107,7 +107,7 @@ static int _decodeUnsignedInteger(bitstream_t* stream, exi_integer_t* iv, int ne
iv->val.uint32 = (iv->val.uint32 << 7) | maskedOctets[k];
}
if (negative) {
iv->val.int32 = (int32_t)(-( iv->val.uint32 + 1));
iv->val.int32 = (-(int32_t)(iv->val.uint32 + 1));
if (iv->val.int32 <= INT16_MAX && iv->val.int32 >= INT16_MIN ) {
iv->type = EXI_INTEGER_16;
} else {
@ -136,7 +136,7 @@ static int _decodeUnsignedInteger(bitstream_t* stream, exi_integer_t* iv, int ne
/* too large */
return EXI_UNSUPPORTED_INTEGER_VALUE;
}
iv->val.int64 = (int64_t)(-( iv->val.uint64 + 1));
iv->val.int64 = (-(int64_t)(iv->val.uint64 + 1));
if (iv->val.int64 <= INT32_MAX && iv->val.int64 >= INT32_MIN ) {
iv->type = EXI_INTEGER_32;
} else {
@ -285,7 +285,7 @@ int decodeInteger32(bitstream_t* stream, int32_t* int32) {
/* For negative values, the Unsigned Integer holds the
* magnitude of the value minus 1 */
errn = decodeUnsignedInteger32(stream, &uint32);
*int32 = (int32_t)(-(uint32 + 1));
*int32 = (-(int32_t)(uint32 + 1));
} else {
/* positive */
errn = decodeUnsignedInteger32(stream, &uint32);
@ -312,7 +312,7 @@ int decodeInteger64(bitstream_t* stream, int64_t* int64) {
/* For negative values, the Unsigned Integer holds the
* magnitude of the value minus 1 */
errn = decodeUnsignedInteger64(stream, &uint64);
*int64 = (int64_t)(-(uint64 + 1));
*int64 = (-(int64_t)(uint64 + 1));
} else {
/* positive */
errn = decodeUnsignedInteger64(stream, &uint64);

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -1,4 +1,33 @@
/* $EXI_SOURCE_PREAMBLE$ */
/*
* Copyright (C) 2007-2014 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 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
* <p>Schema: V2G_CI_MsgDef.xsd</p>
*
*
********************************************************************/
#include "EXIHeaderDecoder.h"
#include "BitInputStream.h"

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -1,4 +1,33 @@
/* $EXI_SOURCE_PREAMBLE$ */
/*
* Copyright (C) 2007-2014 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 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
* <p>Schema: V2G_CI_MsgDef.xsd</p>
*
*
********************************************************************/
#include "EXIHeaderEncoder.h"
#include "BitOutputStream.h"

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -123,17 +123,123 @@ void init_v2gEXIDocument(struct v2gEXIDocument* exiDoc) {
exiDoc->Object_isUsed = 0u;
}
void init_v2gServiceDetailResType(struct v2gServiceDetailResType* v2gServiceDetailResType) {
v2gServiceDetailResType->ServiceParameterList_isUsed = 0u;
void init_v2gPowerDeliveryReqType(struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType) {
v2gPowerDeliveryReqType->ChargingProfile_isUsed = 0u;
v2gPowerDeliveryReqType->EVPowerDeliveryParameter_isUsed = 0u;
v2gPowerDeliveryReqType->DC_EVPowerDeliveryParameter_isUsed = 0u;
}
void init_v2gSPKIDataType(struct v2gSPKIDataType* v2gSPKIDataType) {
v2gSPKIDataType->SPKISexp.arrayLen = 0u;
void init_v2gCertificateUpdateReqType(struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType) {
}
void init_v2gMessageHeaderType(struct v2gMessageHeaderType* v2gMessageHeaderType) {
v2gMessageHeaderType->Notification_isUsed = 0u;
v2gMessageHeaderType->Signature_isUsed = 0u;
}
void init_v2gBodyBaseType(struct v2gBodyBaseType* v2gBodyBaseType) {
}
void init_v2gWeldingDetectionResType(struct v2gWeldingDetectionResType* v2gWeldingDetectionResType) {
}
void init_v2gCostType(struct v2gCostType* v2gCostType) {
v2gCostType->amountMultiplier_isUsed = 0u;
}
void init_v2gCertificateInstallationReqType(struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType) {
}
void init_v2gEntryType(struct v2gEntryType* v2gEntryType) {
v2gEntryType->TimeInterval_isUsed = 0u;
v2gEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_v2gCanonicalizationMethodType(struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType) {
}
void init_v2gSignaturePropertiesType(struct v2gSignaturePropertiesType* v2gSignaturePropertiesType) {
v2gSignaturePropertiesType->Id_isUsed = 0u;
v2gSignaturePropertiesType->SignatureProperty.arrayLen = 0u;
}
void init_v2gPaymentServiceSelectionReqType(struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType) {
}
void init_v2gAuthorizationResType(struct v2gAuthorizationResType* v2gAuthorizationResType) {
}
void init_v2gConsumptionCostType(struct v2gConsumptionCostType* v2gConsumptionCostType) {
v2gConsumptionCostType->Cost.arrayLen = 0u;
}
void init_v2gCertificateInstallationResType(struct v2gCertificateInstallationResType* v2gCertificateInstallationResType) {
}
void init_v2gSessionStopResType(struct v2gSessionStopResType* v2gSessionStopResType) {
}
void init_v2gServiceListType(struct v2gServiceListType* v2gServiceListType) {
v2gServiceListType->Service.arrayLen = 0u;
}
void init_v2gEVSEChargeParameterType(struct v2gEVSEChargeParameterType* v2gEVSEChargeParameterType) {
}
void init_v2gMeteringReceiptReqType(struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType) {
v2gMeteringReceiptReqType->Id_isUsed = 0u;
v2gMeteringReceiptReqType->SAScheduleTupleID_isUsed = 0u;
}
void init_v2gX509IssuerSerialType(struct v2gX509IssuerSerialType* v2gX509IssuerSerialType) {
}
void init_v2gSignatureType(struct v2gSignatureType* v2gSignatureType) {
v2gSignatureType->Id_isUsed = 0u;
v2gSignatureType->KeyInfo_isUsed = 0u;
v2gSignatureType->Object.arrayLen = 0u;
}
void init_v2gEVPowerDeliveryParameterType(struct v2gEVPowerDeliveryParameterType* v2gEVPowerDeliveryParameterType) {
}
void init_v2gAC_EVSEChargeParameterType(struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType) {
}
void init_v2gSAScheduleListType(struct v2gSAScheduleListType* v2gSAScheduleListType) {
v2gSAScheduleListType->SAScheduleTuple.arrayLen = 0u;
}
void init_v2gDC_EVPowerDeliveryParameterType(struct v2gDC_EVPowerDeliveryParameterType* v2gDC_EVPowerDeliveryParameterType) {
v2gDC_EVPowerDeliveryParameterType->BulkChargingComplete_isUsed = 0u;
}
void init_v2gServiceDiscoveryResType(struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType) {
v2gServiceDiscoveryResType->ServiceList_isUsed = 0u;
}
void init_v2gServiceParameterListType(struct v2gServiceParameterListType* v2gServiceParameterListType) {
v2gServiceParameterListType->ParameterSet.arrayLen = 0u;
}
void init_v2gDC_EVChargeParameterType(struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType) {
v2gDC_EVChargeParameterType->DepartureTime_isUsed = 0u;
v2gDC_EVChargeParameterType->EVMaximumPowerLimit_isUsed = 0u;
v2gDC_EVChargeParameterType->EVEnergyCapacity_isUsed = 0u;
v2gDC_EVChargeParameterType->EVEnergyRequest_isUsed = 0u;
v2gDC_EVChargeParameterType->FullSOC_isUsed = 0u;
v2gDC_EVChargeParameterType->BulkSOC_isUsed = 0u;
}
void init_v2gServiceDiscoveryReqType(struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType) {
v2gServiceDiscoveryReqType->ServiceScope_isUsed = 0u;
v2gServiceDiscoveryReqType->ServiceCategory_isUsed = 0u;
}
void init_v2gSignatureValueType(struct v2gSignatureValueType* v2gSignatureValueType) {
v2gSignatureValueType->Id_isUsed = 0u;
}
void init_v2gBodyType(struct v2gBodyType* v2gBodyType) {
v2gBodyType->BodyElement_isUsed = 0u;
v2gBodyType->SessionSetupReq_isUsed = 0u;
@ -172,65 +278,7 @@ void init_v2gBodyType(struct v2gBodyType* v2gBodyType) {
v2gBodyType->WeldingDetectionRes_isUsed = 0u;
}
void init_v2gPaymentServiceSelectionReqType(struct v2gPaymentServiceSelectionReqType* v2gPaymentServiceSelectionReqType) {
}
void init_v2gEVSEStatusType(struct v2gEVSEStatusType* v2gEVSEStatusType) {
}
void init_v2gSelectedServiceType(struct v2gSelectedServiceType* v2gSelectedServiceType) {
v2gSelectedServiceType->ParameterSetID_isUsed = 0u;
}
void init_v2gEntryType(struct v2gEntryType* v2gEntryType) {
v2gEntryType->TimeInterval_isUsed = 0u;
v2gEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_v2gDC_EVSEChargeParameterType(struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType) {
v2gDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed = 0u;
v2gDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed = 0u;
}
void init_v2gSalesTariffType(struct v2gSalesTariffType* v2gSalesTariffType) {
v2gSalesTariffType->Id_isUsed = 0u;
v2gSalesTariffType->SalesTariffDescription_isUsed = 0u;
v2gSalesTariffType->NumEPriceLevels_isUsed = 0u;
v2gSalesTariffType->SalesTariffEntry.arrayLen = 0u;
}
void init_v2gPMaxScheduleType(struct v2gPMaxScheduleType* v2gPMaxScheduleType) {
v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen = 0u;
}
void init_v2gCostType(struct v2gCostType* v2gCostType) {
v2gCostType->amountMultiplier_isUsed = 0u;
}
void init_v2gChargeServiceType(struct v2gChargeServiceType* v2gChargeServiceType) {
v2gChargeServiceType->ServiceName_isUsed = 0u;
v2gChargeServiceType->ServiceScope_isUsed = 0u;
}
void init_v2gPMaxScheduleEntryType(struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType) {
v2gPMaxScheduleEntryType->TimeInterval_isUsed = 0u;
v2gPMaxScheduleEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_v2gServiceListType(struct v2gServiceListType* v2gServiceListType) {
v2gServiceListType->Service.arrayLen = 0u;
}
void init_v2gKeyValueType(struct v2gKeyValueType* v2gKeyValueType) {
v2gKeyValueType->DSAKeyValue_isUsed = 0u;
v2gKeyValueType->RSAKeyValue_isUsed = 0u;
}
void init_v2gPaymentServiceSelectionResType(struct v2gPaymentServiceSelectionResType* v2gPaymentServiceSelectionResType) {
}
void init_v2gSignatureMethodType(struct v2gSignatureMethodType* v2gSignatureMethodType) {
v2gSignatureMethodType->HMACOutputLength_isUsed = 0u;
void init_v2gPaymentDetailsResType(struct v2gPaymentDetailsResType* v2gPaymentDetailsResType) {
}
void init_v2gMeteringReceiptResType(struct v2gMeteringReceiptResType* v2gMeteringReceiptResType) {
@ -239,102 +287,15 @@ void init_v2gMeteringReceiptResType(struct v2gMeteringReceiptResType* v2gMeterin
v2gMeteringReceiptResType->DC_EVSEStatus_isUsed = 0u;
}
void init_v2gMessageHeaderType(struct v2gMessageHeaderType* v2gMessageHeaderType) {
v2gMessageHeaderType->Notification_isUsed = 0u;
v2gMessageHeaderType->Signature_isUsed = 0u;
}
void init_v2gRetrievalMethodType(struct v2gRetrievalMethodType* v2gRetrievalMethodType) {
v2gRetrievalMethodType->URI_isUsed = 0u;
v2gRetrievalMethodType->Type_isUsed = 0u;
v2gRetrievalMethodType->Transforms_isUsed = 0u;
}
void init_v2gEVChargeParameterType(struct v2gEVChargeParameterType* v2gEVChargeParameterType) {
v2gEVChargeParameterType->DepartureTime_isUsed = 0u;
}
void init_v2gCertificateInstallationReqType(struct v2gCertificateInstallationReqType* v2gCertificateInstallationReqType) {
}
void init_v2gChargeParameterDiscoveryResType(struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType) {
v2gChargeParameterDiscoveryResType->SASchedules_isUsed = 0u;
v2gChargeParameterDiscoveryResType->SAScheduleList_isUsed = 0u;
v2gChargeParameterDiscoveryResType->EVSEChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 0u;
}
void init_v2gWeldingDetectionReqType(struct v2gWeldingDetectionReqType* v2gWeldingDetectionReqType) {
}
void init_v2gCableCheckReqType(struct v2gCableCheckReqType* v2gCableCheckReqType) {
}
void init_v2gParameterType(struct v2gParameterType* v2gParameterType) {
v2gParameterType->boolValue_isUsed = 0u;
v2gParameterType->byteValue_isUsed = 0u;
v2gParameterType->shortValue_isUsed = 0u;
v2gParameterType->intValue_isUsed = 0u;
v2gParameterType->physicalValue_isUsed = 0u;
v2gParameterType->stringValue_isUsed = 0u;
}
void init_v2gEVSEChargeParameterType(struct v2gEVSEChargeParameterType* v2gEVSEChargeParameterType) {
}
void init_v2gManifestType(struct v2gManifestType* v2gManifestType) {
v2gManifestType->Id_isUsed = 0u;
v2gManifestType->Reference.arrayLen = 0u;
}
void init_v2gDC_EVStatusType(struct v2gDC_EVStatusType* v2gDC_EVStatusType) {
}
void init_v2gPaymentDetailsReqType(struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType) {
}
void init_v2gSAScheduleListType(struct v2gSAScheduleListType* v2gSAScheduleListType) {
v2gSAScheduleListType->SAScheduleTuple.arrayLen = 0u;
}
void init_v2gRSAKeyValueType(struct v2gRSAKeyValueType* v2gRSAKeyValueType) {
}
void init_v2gAC_EVSEChargeParameterType(struct v2gAC_EVSEChargeParameterType* v2gAC_EVSEChargeParameterType) {
void init_v2gSessionSetupReqType(struct v2gSessionSetupReqType* v2gSessionSetupReqType) {
}
void init_v2gTransformsType(struct v2gTransformsType* v2gTransformsType) {
v2gTransformsType->Transform.arrayLen = 0u;
}
void init_v2gWeldingDetectionResType(struct v2gWeldingDetectionResType* v2gWeldingDetectionResType) {
}
void init_v2gConsumptionCostType(struct v2gConsumptionCostType* v2gConsumptionCostType) {
v2gConsumptionCostType->Cost.arrayLen = 0u;
}
void init_v2gChargingStatusResType(struct v2gChargingStatusResType* v2gChargingStatusResType) {
v2gChargingStatusResType->EVSEMaxCurrent_isUsed = 0u;
v2gChargingStatusResType->MeterInfo_isUsed = 0u;
v2gChargingStatusResType->ReceiptRequired_isUsed = 0u;
}
void init_v2gEVStatusType(struct v2gEVStatusType* v2gEVStatusType) {
}
void init_v2gPGPDataType(struct v2gPGPDataType* v2gPGPDataType) {
v2gPGPDataType->PGPKeyID_isUsed = 0u;
v2gPGPDataType->PGPKeyPacket_isUsed = 0u;
}
void init_v2gSessionStopResType(struct v2gSessionStopResType* v2gSessionStopResType) {
}
void init_v2gServiceDiscoveryReqType(struct v2gServiceDiscoveryReqType* v2gServiceDiscoveryReqType) {
v2gServiceDiscoveryReqType->ServiceScope_isUsed = 0u;
v2gServiceDiscoveryReqType->ServiceCategory_isUsed = 0u;
void init_v2gSignedInfoType(struct v2gSignedInfoType* v2gSignedInfoType) {
v2gSignedInfoType->Id_isUsed = 0u;
v2gSignedInfoType->Reference.arrayLen = 0u;
}
void init_v2gAuthorizationReqType(struct v2gAuthorizationReqType* v2gAuthorizationReqType) {
@ -342,178 +303,28 @@ void init_v2gAuthorizationReqType(struct v2gAuthorizationReqType* v2gAuthorizati
v2gAuthorizationReqType->GenChallenge_isUsed = 0u;
}
void init_v2gSAScheduleTupleType(struct v2gSAScheduleTupleType* v2gSAScheduleTupleType) {
v2gSAScheduleTupleType->SalesTariff_isUsed = 0u;
}
void init_v2gPhysicalValueType(struct v2gPhysicalValueType* v2gPhysicalValueType) {
}
void init_v2gDigestMethodType(struct v2gDigestMethodType* v2gDigestMethodType) {
}
void init_v2gAC_EVSEStatusType(struct v2gAC_EVSEStatusType* v2gAC_EVSEStatusType) {
}
void init_v2gSessionSetupResType(struct v2gSessionSetupResType* v2gSessionSetupResType) {
v2gSessionSetupResType->EVSETimeStamp_isUsed = 0u;
}
void init_v2gX509IssuerSerialType(struct v2gX509IssuerSerialType* v2gX509IssuerSerialType) {
}
void init_v2gSessionStopReqType(struct v2gSessionStopReqType* v2gSessionStopReqType) {
}
void init_v2gDC_EVSEStatusType(struct v2gDC_EVSEStatusType* v2gDC_EVSEStatusType) {
v2gDC_EVSEStatusType->EVSEIsolationStatus_isUsed = 0u;
void init_v2gChargingProfileType(struct v2gChargingProfileType* v2gChargingProfileType) {
v2gChargingProfileType->ProfileEntry.arrayLen = 0u;
}
void init_v2gDiffieHellmanPublickeyType(struct v2gDiffieHellmanPublickeyType* v2gDiffieHellmanPublickeyType) {
}
void init_v2gCertificateUpdateReqType(struct v2gCertificateUpdateReqType* v2gCertificateUpdateReqType) {
}
void init_v2gBodyBaseType(struct v2gBodyBaseType* v2gBodyBaseType) {
}
void init_v2gDC_EVChargeParameterType(struct v2gDC_EVChargeParameterType* v2gDC_EVChargeParameterType) {
v2gDC_EVChargeParameterType->DepartureTime_isUsed = 0u;
v2gDC_EVChargeParameterType->EVMaximumPowerLimit_isUsed = 0u;
v2gDC_EVChargeParameterType->EVEnergyCapacity_isUsed = 0u;
v2gDC_EVChargeParameterType->EVEnergyRequest_isUsed = 0u;
v2gDC_EVChargeParameterType->FullSOC_isUsed = 0u;
v2gDC_EVChargeParameterType->BulkSOC_isUsed = 0u;
void init_v2gSelectedServiceType(struct v2gSelectedServiceType* v2gSelectedServiceType) {
v2gSelectedServiceType->ParameterSetID_isUsed = 0u;
}
void init_v2gSubCertificatesType(struct v2gSubCertificatesType* v2gSubCertificatesType) {
v2gSubCertificatesType->Certificate.arrayLen = 0u;
}
void init_v2gSupportedEnergyTransferModeType(struct v2gSupportedEnergyTransferModeType* v2gSupportedEnergyTransferModeType) {
v2gSupportedEnergyTransferModeType->EnergyTransferMode.arrayLen = 0u;
}
void init_v2gChargingStatusReqType(struct v2gChargingStatusReqType* v2gChargingStatusReqType) {
}
void init_v2gSignaturePropertyType(struct v2gSignaturePropertyType* v2gSignaturePropertyType) {
v2gSignaturePropertyType->Id_isUsed = 0u;
}
void init_v2gContractSignatureEncryptedPrivateKeyType(struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType) {
}
void init_v2gReferenceType(struct v2gReferenceType* v2gReferenceType) {
v2gReferenceType->Id_isUsed = 0u;
v2gReferenceType->URI_isUsed = 0u;
v2gReferenceType->Type_isUsed = 0u;
v2gReferenceType->Transforms_isUsed = 0u;
}
void init_v2gCurrentDemandResType(struct v2gCurrentDemandResType* v2gCurrentDemandResType) {
v2gCurrentDemandResType->EVSEMaximumVoltageLimit_isUsed = 0u;
v2gCurrentDemandResType->EVSEMaximumCurrentLimit_isUsed = 0u;
v2gCurrentDemandResType->EVSEMaximumPowerLimit_isUsed = 0u;
v2gCurrentDemandResType->MeterInfo_isUsed = 0u;
v2gCurrentDemandResType->ReceiptRequired_isUsed = 0u;
}
void init_v2gCanonicalizationMethodType(struct v2gCanonicalizationMethodType* v2gCanonicalizationMethodType) {
}
void init_v2gTransformType(struct v2gTransformType* v2gTransformType) {
v2gTransformType->XPath.arrayLen = 0u;
}
void init_v2gCertificateChainType(struct v2gCertificateChainType* v2gCertificateChainType) {
v2gCertificateChainType->Id_isUsed = 0u;
v2gCertificateChainType->SubCertificates_isUsed = 0u;
}
void init_v2gSignatureValueType(struct v2gSignatureValueType* v2gSignatureValueType) {
v2gSignatureValueType->Id_isUsed = 0u;
}
void init_v2gEVPowerDeliveryParameterType(struct v2gEVPowerDeliveryParameterType* v2gEVPowerDeliveryParameterType) {
}
void init_v2gServiceDetailReqType(struct v2gServiceDetailReqType* v2gServiceDetailReqType) {
}
void init_v2gPaymentDetailsResType(struct v2gPaymentDetailsResType* v2gPaymentDetailsResType) {
}
void init_v2gX509DataType(struct v2gX509DataType* v2gX509DataType) {
v2gX509DataType->X509IssuerSerial.arrayLen = 0u;
v2gX509DataType->X509SKI.arrayLen = 0u;
v2gX509DataType->X509SubjectName.arrayLen = 0u;
v2gX509DataType->X509Certificate.arrayLen = 0u;
v2gX509DataType->X509CRL.arrayLen = 0u;
}
void init_v2gDSAKeyValueType(struct v2gDSAKeyValueType* v2gDSAKeyValueType) {
v2gDSAKeyValueType->P_isUsed = 0u;
v2gDSAKeyValueType->Q_isUsed = 0u;
v2gDSAKeyValueType->G_isUsed = 0u;
v2gDSAKeyValueType->J_isUsed = 0u;
v2gDSAKeyValueType->Seed_isUsed = 0u;
v2gDSAKeyValueType->PgenCounter_isUsed = 0u;
}
void init_v2gPowerDeliveryResType(struct v2gPowerDeliveryResType* v2gPowerDeliveryResType) {
v2gPowerDeliveryResType->EVSEStatus_isUsed = 0u;
v2gPowerDeliveryResType->AC_EVSEStatus_isUsed = 0u;
v2gPowerDeliveryResType->DC_EVSEStatus_isUsed = 0u;
}
void init_v2gChargeParameterDiscoveryReqType(struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType) {
v2gChargeParameterDiscoveryReqType->MaxEntriesSAScheduleTuple_isUsed = 0u;
v2gChargeParameterDiscoveryReqType->EVChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 0u;
}
void init_v2gParameterSetType(struct v2gParameterSetType* v2gParameterSetType) {
v2gParameterSetType->Parameter.arrayLen = 0u;
}
void init_v2gServiceDiscoveryResType(struct v2gServiceDiscoveryResType* v2gServiceDiscoveryResType) {
v2gServiceDiscoveryResType->ServiceList_isUsed = 0u;
}
void init_v2gAnonType_V2G_Message(struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message) {
}
void init_v2gSignatureType(struct v2gSignatureType* v2gSignatureType) {
v2gSignatureType->Id_isUsed = 0u;
v2gSignatureType->KeyInfo_isUsed = 0u;
v2gSignatureType->Object.arrayLen = 0u;
}
void init_v2gEMAIDType(struct v2gEMAIDType* v2gEMAIDType) {
}
void init_v2gCertificateInstallationResType(struct v2gCertificateInstallationResType* v2gCertificateInstallationResType) {
}
void init_v2gCableCheckResType(struct v2gCableCheckResType* v2gCableCheckResType) {
}
void init_v2gMeterInfoType(struct v2gMeterInfoType* v2gMeterInfoType) {
v2gMeterInfoType->MeterReading_isUsed = 0u;
v2gMeterInfoType->SigMeterReading_isUsed = 0u;
v2gMeterInfoType->MeterStatus_isUsed = 0u;
v2gMeterInfoType->TMeter_isUsed = 0u;
}
void init_v2gAC_EVChargeParameterType(struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType) {
v2gAC_EVChargeParameterType->DepartureTime_isUsed = 0u;
}
void init_v2gServiceParameterListType(struct v2gServiceParameterListType* v2gServiceParameterListType) {
v2gServiceParameterListType->ParameterSet.arrayLen = 0u;
void init_v2gSupportedEnergyTransferModeType(struct v2gSupportedEnergyTransferModeType* v2gSupportedEnergyTransferModeType) {
v2gSupportedEnergyTransferModeType->EnergyTransferMode.arrayLen = 0u;
}
void init_v2gCurrentDemandReqType(struct v2gCurrentDemandReqType* v2gCurrentDemandReqType) {
@ -525,78 +336,191 @@ void init_v2gCurrentDemandReqType(struct v2gCurrentDemandReqType* v2gCurrentDema
v2gCurrentDemandReqType->RemainingTimeToBulkSoC_isUsed = 0u;
}
void init_v2gSASchedulesType(struct v2gSASchedulesType* v2gSASchedulesType) {
void init_v2gSalesTariffType(struct v2gSalesTariffType* v2gSalesTariffType) {
v2gSalesTariffType->Id_isUsed = 0u;
v2gSalesTariffType->SalesTariffDescription_isUsed = 0u;
v2gSalesTariffType->NumEPriceLevels_isUsed = 0u;
v2gSalesTariffType->SalesTariffEntry.arrayLen = 0u;
}
void init_v2gIntervalType(struct v2gIntervalType* v2gIntervalType) {
void init_v2gEMAIDType(struct v2gEMAIDType* v2gEMAIDType) {
}
void init_v2gCableCheckReqType(struct v2gCableCheckReqType* v2gCableCheckReqType) {
}
void init_v2gPreChargeResType(struct v2gPreChargeResType* v2gPreChargeResType) {
}
void init_v2gSalesTariffEntryType(struct v2gSalesTariffEntryType* v2gSalesTariffEntryType) {
v2gSalesTariffEntryType->TimeInterval_isUsed = 0u;
v2gSalesTariffEntryType->RelativeTimeInterval_isUsed = 0u;
v2gSalesTariffEntryType->EPriceLevel_isUsed = 0u;
v2gSalesTariffEntryType->ConsumptionCost.arrayLen = 0u;
void init_v2gEVStatusType(struct v2gEVStatusType* v2gEVStatusType) {
}
void init_v2gPhysicalValueType(struct v2gPhysicalValueType* v2gPhysicalValueType) {
}
void init_v2gContractSignatureEncryptedPrivateKeyType(struct v2gContractSignatureEncryptedPrivateKeyType* v2gContractSignatureEncryptedPrivateKeyType) {
}
void init_v2gPMaxScheduleType(struct v2gPMaxScheduleType* v2gPMaxScheduleType) {
v2gPMaxScheduleType->PMaxScheduleEntry.arrayLen = 0u;
}
void init_v2gNotificationType(struct v2gNotificationType* v2gNotificationType) {
v2gNotificationType->FaultMsg_isUsed = 0u;
}
void init_v2gChargingStatusReqType(struct v2gChargingStatusReqType* v2gChargingStatusReqType) {
}
void init_v2gChargeServiceType(struct v2gChargeServiceType* v2gChargeServiceType) {
v2gChargeServiceType->ServiceName_isUsed = 0u;
v2gChargeServiceType->ServiceScope_isUsed = 0u;
}
void init_v2gPowerDeliveryResType(struct v2gPowerDeliveryResType* v2gPowerDeliveryResType) {
v2gPowerDeliveryResType->EVSEStatus_isUsed = 0u;
v2gPowerDeliveryResType->AC_EVSEStatus_isUsed = 0u;
v2gPowerDeliveryResType->DC_EVSEStatus_isUsed = 0u;
}
void init_v2gEVSEStatusType(struct v2gEVSEStatusType* v2gEVSEStatusType) {
}
void init_v2gX509DataType(struct v2gX509DataType* v2gX509DataType) {
v2gX509DataType->X509IssuerSerial.arrayLen = 0u;
v2gX509DataType->X509SKI.arrayLen = 0u;
v2gX509DataType->X509SubjectName.arrayLen = 0u;
v2gX509DataType->X509Certificate.arrayLen = 0u;
v2gX509DataType->X509CRL.arrayLen = 0u;
}
void init_v2gPreChargeReqType(struct v2gPreChargeReqType* v2gPreChargeReqType) {
}
void init_v2gDigestMethodType(struct v2gDigestMethodType* v2gDigestMethodType) {
}
void init_v2gPGPDataType(struct v2gPGPDataType* v2gPGPDataType) {
v2gPGPDataType->PGPKeyID_isUsed = 0u;
v2gPGPDataType->PGPKeyPacket_isUsed = 0u;
}
void init_v2gSASchedulesType(struct v2gSASchedulesType* v2gSASchedulesType) {
}
void init_v2gTransformType(struct v2gTransformType* v2gTransformType) {
v2gTransformType->XPath.arrayLen = 0u;
}
void init_v2gPaymentDetailsReqType(struct v2gPaymentDetailsReqType* v2gPaymentDetailsReqType) {
}
void init_v2gDC_EVStatusType(struct v2gDC_EVStatusType* v2gDC_EVStatusType) {
}
void init_v2gPaymentServiceSelectionResType(struct v2gPaymentServiceSelectionResType* v2gPaymentServiceSelectionResType) {
}
void init_v2gDC_EVSEChargeParameterType(struct v2gDC_EVSEChargeParameterType* v2gDC_EVSEChargeParameterType) {
v2gDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed = 0u;
v2gDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed = 0u;
}
void init_v2gChargingStatusResType(struct v2gChargingStatusResType* v2gChargingStatusResType) {
v2gChargingStatusResType->EVSEMaxCurrent_isUsed = 0u;
v2gChargingStatusResType->MeterInfo_isUsed = 0u;
v2gChargingStatusResType->ReceiptRequired_isUsed = 0u;
}
void init_v2gObjectType(struct v2gObjectType* v2gObjectType) {
v2gObjectType->Id_isUsed = 0u;
v2gObjectType->MimeType_isUsed = 0u;
v2gObjectType->Encoding_isUsed = 0u;
}
void init_v2gPaymentOptionListType(struct v2gPaymentOptionListType* v2gPaymentOptionListType) {
v2gPaymentOptionListType->PaymentOption.arrayLen = 0u;
}
void init_v2gSignedInfoType(struct v2gSignedInfoType* v2gSignedInfoType) {
v2gSignedInfoType->Id_isUsed = 0u;
v2gSignedInfoType->Reference.arrayLen = 0u;
void init_v2gParameterSetType(struct v2gParameterSetType* v2gParameterSetType) {
v2gParameterSetType->Parameter.arrayLen = 0u;
}
void init_v2gSessionSetupReqType(struct v2gSessionSetupReqType* v2gSessionSetupReqType) {
void init_v2gAC_EVChargeParameterType(struct v2gAC_EVChargeParameterType* v2gAC_EVChargeParameterType) {
v2gAC_EVChargeParameterType->DepartureTime_isUsed = 0u;
}
void init_v2gSignaturePropertiesType(struct v2gSignaturePropertiesType* v2gSignaturePropertiesType) {
v2gSignaturePropertiesType->Id_isUsed = 0u;
v2gSignaturePropertiesType->SignatureProperty.arrayLen = 0u;
void init_v2gManifestType(struct v2gManifestType* v2gManifestType) {
v2gManifestType->Id_isUsed = 0u;
v2gManifestType->Reference.arrayLen = 0u;
}
void init_v2gProfileEntryType(struct v2gProfileEntryType* v2gProfileEntryType) {
v2gProfileEntryType->ChargingProfileEntryMaxNumberOfPhasesInUse_isUsed = 0u;
}
void init_v2gPreChargeReqType(struct v2gPreChargeReqType* v2gPreChargeReqType) {
void init_v2gServiceDetailResType(struct v2gServiceDetailResType* v2gServiceDetailResType) {
v2gServiceDetailResType->ServiceParameterList_isUsed = 0u;
}
void init_v2gListOfRootCertificateIDsType(struct v2gListOfRootCertificateIDsType* v2gListOfRootCertificateIDsType) {
v2gListOfRootCertificateIDsType->RootCertificateID.arrayLen = 0u;
}
void init_v2gDC_EVPowerDeliveryParameterType(struct v2gDC_EVPowerDeliveryParameterType* v2gDC_EVPowerDeliveryParameterType) {
v2gDC_EVPowerDeliveryParameterType->BulkChargingComplete_isUsed = 0u;
}
void init_v2gRelativeTimeIntervalType(struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType) {
v2gRelativeTimeIntervalType->duration_isUsed = 0u;
}
void init_v2gChargingProfileType(struct v2gChargingProfileType* v2gChargingProfileType) {
v2gChargingProfileType->ProfileEntry.arrayLen = 0u;
}
void init_v2gCertificateUpdateResType(struct v2gCertificateUpdateResType* v2gCertificateUpdateResType) {
v2gCertificateUpdateResType->RetryCounter_isUsed = 0u;
}
void init_v2gMeteringReceiptReqType(struct v2gMeteringReceiptReqType* v2gMeteringReceiptReqType) {
v2gMeteringReceiptReqType->Id_isUsed = 0u;
v2gMeteringReceiptReqType->SAScheduleTupleID_isUsed = 0u;
}
void init_v2gServiceType(struct v2gServiceType* v2gServiceType) {
v2gServiceType->ServiceName_isUsed = 0u;
v2gServiceType->ServiceScope_isUsed = 0u;
}
void init_v2gNotificationType(struct v2gNotificationType* v2gNotificationType) {
v2gNotificationType->FaultMsg_isUsed = 0u;
void init_v2gParameterType(struct v2gParameterType* v2gParameterType) {
v2gParameterType->boolValue_isUsed = 0u;
v2gParameterType->byteValue_isUsed = 0u;
v2gParameterType->shortValue_isUsed = 0u;
v2gParameterType->intValue_isUsed = 0u;
v2gParameterType->physicalValue_isUsed = 0u;
v2gParameterType->stringValue_isUsed = 0u;
}
void init_v2gDSAKeyValueType(struct v2gDSAKeyValueType* v2gDSAKeyValueType) {
v2gDSAKeyValueType->P_isUsed = 0u;
v2gDSAKeyValueType->Q_isUsed = 0u;
v2gDSAKeyValueType->G_isUsed = 0u;
v2gDSAKeyValueType->J_isUsed = 0u;
v2gDSAKeyValueType->Seed_isUsed = 0u;
v2gDSAKeyValueType->PgenCounter_isUsed = 0u;
}
void init_v2gAnonType_V2G_Message(struct v2gAnonType_V2G_Message* v2gAnonType_V2G_Message) {
}
void init_v2gEVChargeParameterType(struct v2gEVChargeParameterType* v2gEVChargeParameterType) {
v2gEVChargeParameterType->DepartureTime_isUsed = 0u;
}
void init_v2gProfileEntryType(struct v2gProfileEntryType* v2gProfileEntryType) {
v2gProfileEntryType->ChargingProfileEntryMaxNumberOfPhasesInUse_isUsed = 0u;
}
void init_v2gSignaturePropertyType(struct v2gSignaturePropertyType* v2gSignaturePropertyType) {
v2gSignaturePropertyType->Id_isUsed = 0u;
}
void init_v2gPMaxScheduleEntryType(struct v2gPMaxScheduleEntryType* v2gPMaxScheduleEntryType) {
v2gPMaxScheduleEntryType->TimeInterval_isUsed = 0u;
v2gPMaxScheduleEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_v2gKeyValueType(struct v2gKeyValueType* v2gKeyValueType) {
v2gKeyValueType->DSAKeyValue_isUsed = 0u;
v2gKeyValueType->RSAKeyValue_isUsed = 0u;
}
void init_v2gRetrievalMethodType(struct v2gRetrievalMethodType* v2gRetrievalMethodType) {
v2gRetrievalMethodType->URI_isUsed = 0u;
v2gRetrievalMethodType->Type_isUsed = 0u;
v2gRetrievalMethodType->Transforms_isUsed = 0u;
}
void init_v2gSessionStopReqType(struct v2gSessionStopReqType* v2gSessionStopReqType) {
}
void init_v2gServiceDetailReqType(struct v2gServiceDetailReqType* v2gServiceDetailReqType) {
}
void init_v2gKeyInfoType(struct v2gKeyInfoType* v2gKeyInfoType) {
@ -610,20 +534,96 @@ void init_v2gKeyInfoType(struct v2gKeyInfoType* v2gKeyInfoType) {
v2gKeyInfoType->MgmtData.arrayLen = 0u;
}
void init_v2gAC_EVSEStatusType(struct v2gAC_EVSEStatusType* v2gAC_EVSEStatusType) {
}
void init_v2gSelectedServiceListType(struct v2gSelectedServiceListType* v2gSelectedServiceListType) {
v2gSelectedServiceListType->SelectedService.arrayLen = 0u;
}
void init_v2gPowerDeliveryReqType(struct v2gPowerDeliveryReqType* v2gPowerDeliveryReqType) {
v2gPowerDeliveryReqType->ChargingProfile_isUsed = 0u;
v2gPowerDeliveryReqType->EVPowerDeliveryParameter_isUsed = 0u;
v2gPowerDeliveryReqType->DC_EVPowerDeliveryParameter_isUsed = 0u;
void init_v2gMeterInfoType(struct v2gMeterInfoType* v2gMeterInfoType) {
v2gMeterInfoType->MeterReading_isUsed = 0u;
v2gMeterInfoType->SigMeterReading_isUsed = 0u;
v2gMeterInfoType->MeterStatus_isUsed = 0u;
v2gMeterInfoType->TMeter_isUsed = 0u;
}
void init_v2gObjectType(struct v2gObjectType* v2gObjectType) {
v2gObjectType->Id_isUsed = 0u;
v2gObjectType->MimeType_isUsed = 0u;
v2gObjectType->Encoding_isUsed = 0u;
void init_v2gSPKIDataType(struct v2gSPKIDataType* v2gSPKIDataType) {
v2gSPKIDataType->SPKISexp.arrayLen = 0u;
}
void init_v2gChargeParameterDiscoveryResType(struct v2gChargeParameterDiscoveryResType* v2gChargeParameterDiscoveryResType) {
v2gChargeParameterDiscoveryResType->SASchedules_isUsed = 0u;
v2gChargeParameterDiscoveryResType->SAScheduleList_isUsed = 0u;
v2gChargeParameterDiscoveryResType->EVSEChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 0u;
}
void init_v2gTransformsType(struct v2gTransformsType* v2gTransformsType) {
v2gTransformsType->Transform.arrayLen = 0u;
}
void init_v2gSalesTariffEntryType(struct v2gSalesTariffEntryType* v2gSalesTariffEntryType) {
v2gSalesTariffEntryType->TimeInterval_isUsed = 0u;
v2gSalesTariffEntryType->RelativeTimeInterval_isUsed = 0u;
v2gSalesTariffEntryType->EPriceLevel_isUsed = 0u;
v2gSalesTariffEntryType->ConsumptionCost.arrayLen = 0u;
}
void init_v2gWeldingDetectionReqType(struct v2gWeldingDetectionReqType* v2gWeldingDetectionReqType) {
}
void init_v2gSessionSetupResType(struct v2gSessionSetupResType* v2gSessionSetupResType) {
v2gSessionSetupResType->EVSETimeStamp_isUsed = 0u;
}
void init_v2gSignatureMethodType(struct v2gSignatureMethodType* v2gSignatureMethodType) {
v2gSignatureMethodType->HMACOutputLength_isUsed = 0u;
}
void init_v2gCurrentDemandResType(struct v2gCurrentDemandResType* v2gCurrentDemandResType) {
v2gCurrentDemandResType->EVSEMaximumVoltageLimit_isUsed = 0u;
v2gCurrentDemandResType->EVSEMaximumCurrentLimit_isUsed = 0u;
v2gCurrentDemandResType->EVSEMaximumPowerLimit_isUsed = 0u;
v2gCurrentDemandResType->MeterInfo_isUsed = 0u;
v2gCurrentDemandResType->ReceiptRequired_isUsed = 0u;
}
void init_v2gChargeParameterDiscoveryReqType(struct v2gChargeParameterDiscoveryReqType* v2gChargeParameterDiscoveryReqType) {
v2gChargeParameterDiscoveryReqType->MaxEntriesSAScheduleTuple_isUsed = 0u;
v2gChargeParameterDiscoveryReqType->EVChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 0u;
v2gChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 0u;
}
void init_v2gCableCheckResType(struct v2gCableCheckResType* v2gCableCheckResType) {
}
void init_v2gRelativeTimeIntervalType(struct v2gRelativeTimeIntervalType* v2gRelativeTimeIntervalType) {
v2gRelativeTimeIntervalType->duration_isUsed = 0u;
}
void init_v2gSAScheduleTupleType(struct v2gSAScheduleTupleType* v2gSAScheduleTupleType) {
v2gSAScheduleTupleType->SalesTariff_isUsed = 0u;
}
void init_v2gDC_EVSEStatusType(struct v2gDC_EVSEStatusType* v2gDC_EVSEStatusType) {
v2gDC_EVSEStatusType->EVSEIsolationStatus_isUsed = 0u;
}
void init_v2gIntervalType(struct v2gIntervalType* v2gIntervalType) {
}
void init_v2gReferenceType(struct v2gReferenceType* v2gReferenceType) {
v2gReferenceType->Id_isUsed = 0u;
v2gReferenceType->URI_isUsed = 0u;
v2gReferenceType->Type_isUsed = 0u;
v2gReferenceType->Transforms_isUsed = 0u;
}
void init_v2gCertificateUpdateResType(struct v2gCertificateUpdateResType* v2gCertificateUpdateResType) {
v2gCertificateUpdateResType->RetryCounter_isUsed = 0u;
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>

613
src/din/dinEXIDatatypes.c Normal file
View file

@ -0,0 +1,613 @@
/*
* Copyright (C) 2007-2014 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 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
* <p>Schema: V2G_CI_MsgDef.xsd</p>
*
*
********************************************************************/
#include <stdint.h>
#include "dinEXIDatatypes.h"
#include "EXITypes.h"
#ifndef EXI_din_DATATYPES_C
#define EXI_din_DATATYPES_C
#if DEPLOY_DIN_CODEC == SUPPORT_YES
void init_dinEXIDocument(struct dinEXIDocument* exiDoc) {
exiDoc->BodyElement_isUsed = 0u;
exiDoc->V2G_Message_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;
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->ServiceCharge_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->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->ContractAuthenticationReq_isUsed = 0u;
exiDoc->CertificateInstallationReq_isUsed = 0u;
exiDoc->ContractAuthenticationRes_isUsed = 0u;
exiDoc->CertificateInstallationRes_isUsed = 0u;
exiDoc->WeldingDetectionReq_isUsed = 0u;
exiDoc->WeldingDetectionRes_isUsed = 0u;
exiDoc->CertificateUpdateReq_isUsed = 0u;
exiDoc->CertificateUpdateRes_isUsed = 0u;
exiDoc->PowerDeliveryReq_isUsed = 0u;
exiDoc->PowerDeliveryRes_isUsed = 0u;
exiDoc->ChargingStatusReq_isUsed = 0u;
exiDoc->ChargingStatusRes_isUsed = 0u;
exiDoc->CurrentDemandReq_isUsed = 0u;
exiDoc->PreChargeReq_isUsed = 0u;
exiDoc->CurrentDemandRes_isUsed = 0u;
exiDoc->PreChargeRes_isUsed = 0u;
exiDoc->ServicePaymentSelectionReq_isUsed = 0u;
exiDoc->SessionStopReq_isUsed = 0u;
exiDoc->ServicePaymentSelectionRes_isUsed = 0u;
exiDoc->SessionStopRes_isUsed = 0u;
exiDoc->ChargeParameterDiscoveryReq_isUsed = 0u;
exiDoc->ChargeParameterDiscoveryRes_isUsed = 0u;
exiDoc->ServiceDetailReq_isUsed = 0u;
exiDoc->ServiceDetailRes_isUsed = 0u;
}
void init_dinPreChargeReqType(struct dinPreChargeReqType* dinPreChargeReqType) {
}
void init_dinNotificationType(struct dinNotificationType* dinNotificationType) {
dinNotificationType->FaultMsg_isUsed = 0u;
}
void init_dinServiceTagType(struct dinServiceTagType* dinServiceTagType) {
dinServiceTagType->ServiceName_isUsed = 0u;
dinServiceTagType->ServiceScope_isUsed = 0u;
}
void init_dinCostType(struct dinCostType* dinCostType) {
dinCostType->amountMultiplier_isUsed = 0u;
}
void init_dinX509DataType(struct dinX509DataType* dinX509DataType) {
dinX509DataType->X509IssuerSerial.arrayLen = 0u;
dinX509DataType->X509SKI.arrayLen = 0u;
dinX509DataType->X509SubjectName.arrayLen = 0u;
dinX509DataType->X509Certificate.arrayLen = 0u;
dinX509DataType->X509CRL.arrayLen = 0u;
}
void init_dinBodyType(struct dinBodyType* dinBodyType) {
dinBodyType->BodyElement_isUsed = 0u;
dinBodyType->SessionSetupReq_isUsed = 0u;
dinBodyType->SessionSetupRes_isUsed = 0u;
dinBodyType->ServiceDiscoveryReq_isUsed = 0u;
dinBodyType->ServiceDiscoveryRes_isUsed = 0u;
dinBodyType->ServiceDetailReq_isUsed = 0u;
dinBodyType->ServiceDetailRes_isUsed = 0u;
dinBodyType->ServicePaymentSelectionReq_isUsed = 0u;
dinBodyType->ServicePaymentSelectionRes_isUsed = 0u;
dinBodyType->PaymentDetailsReq_isUsed = 0u;
dinBodyType->PaymentDetailsRes_isUsed = 0u;
dinBodyType->ContractAuthenticationReq_isUsed = 0u;
dinBodyType->ContractAuthenticationRes_isUsed = 0u;
dinBodyType->ChargeParameterDiscoveryReq_isUsed = 0u;
dinBodyType->ChargeParameterDiscoveryRes_isUsed = 0u;
dinBodyType->PowerDeliveryReq_isUsed = 0u;
dinBodyType->PowerDeliveryRes_isUsed = 0u;
dinBodyType->ChargingStatusReq_isUsed = 0u;
dinBodyType->ChargingStatusRes_isUsed = 0u;
dinBodyType->MeteringReceiptReq_isUsed = 0u;
dinBodyType->MeteringReceiptRes_isUsed = 0u;
dinBodyType->SessionStopReq_isUsed = 0u;
dinBodyType->SessionStopRes_isUsed = 0u;
dinBodyType->CertificateUpdateReq_isUsed = 0u;
dinBodyType->CertificateUpdateRes_isUsed = 0u;
dinBodyType->CertificateInstallationReq_isUsed = 0u;
dinBodyType->CertificateInstallationRes_isUsed = 0u;
dinBodyType->CableCheckReq_isUsed = 0u;
dinBodyType->CableCheckRes_isUsed = 0u;
dinBodyType->PreChargeReq_isUsed = 0u;
dinBodyType->PreChargeRes_isUsed = 0u;
dinBodyType->CurrentDemandReq_isUsed = 0u;
dinBodyType->CurrentDemandRes_isUsed = 0u;
dinBodyType->WeldingDetectionReq_isUsed = 0u;
dinBodyType->WeldingDetectionRes_isUsed = 0u;
}
void init_dinRetrievalMethodType(struct dinRetrievalMethodType* dinRetrievalMethodType) {
dinRetrievalMethodType->URI_isUsed = 0u;
dinRetrievalMethodType->Type_isUsed = 0u;
dinRetrievalMethodType->Transforms_isUsed = 0u;
}
void init_dinCertificateInstallationReqType(struct dinCertificateInstallationReqType* dinCertificateInstallationReqType) {
dinCertificateInstallationReqType->Id_isUsed = 0u;
}
void init_dinAC_EVChargeParameterType(struct dinAC_EVChargeParameterType* dinAC_EVChargeParameterType) {
}
void init_dinObjectType(struct dinObjectType* dinObjectType) {
dinObjectType->Id_isUsed = 0u;
dinObjectType->MimeType_isUsed = 0u;
dinObjectType->Encoding_isUsed = 0u;
}
void init_dinContractAuthenticationResType(struct dinContractAuthenticationResType* dinContractAuthenticationResType) {
}
void init_dinChargingProfileType(struct dinChargingProfileType* dinChargingProfileType) {
dinChargingProfileType->ProfileEntry.arrayLen = 0u;
}
void init_dinCertificateUpdateResType(struct dinCertificateUpdateResType* dinCertificateUpdateResType) {
}
void init_dinReferenceType(struct dinReferenceType* dinReferenceType) {
dinReferenceType->Id_isUsed = 0u;
dinReferenceType->URI_isUsed = 0u;
dinReferenceType->Type_isUsed = 0u;
dinReferenceType->Transforms_isUsed = 0u;
}
void init_dinPMaxScheduleEntryType(struct dinPMaxScheduleEntryType* dinPMaxScheduleEntryType) {
dinPMaxScheduleEntryType->TimeInterval_isUsed = 0u;
dinPMaxScheduleEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_dinServicePaymentSelectionReqType(struct dinServicePaymentSelectionReqType* dinServicePaymentSelectionReqType) {
}
void init_dinCertificateInstallationResType(struct dinCertificateInstallationResType* dinCertificateInstallationResType) {
}
void init_dinSelectedServiceType(struct dinSelectedServiceType* dinSelectedServiceType) {
dinSelectedServiceType->ParameterSetID_isUsed = 0u;
}
void init_dinDC_EVStatusType(struct dinDC_EVStatusType* dinDC_EVStatusType) {
dinDC_EVStatusType->EVCabinConditioning_isUsed = 0u;
dinDC_EVStatusType->EVRESSConditioning_isUsed = 0u;
}
void init_dinPGPDataType(struct dinPGPDataType* dinPGPDataType) {
dinPGPDataType->PGPKeyID_isUsed = 0u;
dinPGPDataType->PGPKeyPacket_isUsed = 0u;
}
void init_dinCurrentDemandResType(struct dinCurrentDemandResType* dinCurrentDemandResType) {
dinCurrentDemandResType->EVSEMaximumVoltageLimit_isUsed = 0u;
dinCurrentDemandResType->EVSEMaximumCurrentLimit_isUsed = 0u;
dinCurrentDemandResType->EVSEMaximumPowerLimit_isUsed = 0u;
}
void init_dinCableCheckReqType(struct dinCableCheckReqType* dinCableCheckReqType) {
}
void init_dinChargingStatusResType(struct dinChargingStatusResType* dinChargingStatusResType) {
dinChargingStatusResType->EVSEMaxCurrent_isUsed = 0u;
dinChargingStatusResType->MeterInfo_isUsed = 0u;
}
void init_dinWeldingDetectionReqType(struct dinWeldingDetectionReqType* dinWeldingDetectionReqType) {
}
void init_dinServiceParameterListType(struct dinServiceParameterListType* dinServiceParameterListType) {
dinServiceParameterListType->ParameterSet.arrayLen = 0u;
}
void init_dinCertificateChainType(struct dinCertificateChainType* dinCertificateChainType) {
dinCertificateChainType->SubCertificates_isUsed = 0u;
}
void init_dinPowerDeliveryResType(struct dinPowerDeliveryResType* dinPowerDeliveryResType) {
dinPowerDeliveryResType->EVSEStatus_isUsed = 0u;
dinPowerDeliveryResType->AC_EVSEStatus_isUsed = 0u;
dinPowerDeliveryResType->DC_EVSEStatus_isUsed = 0u;
}
void init_dinAC_EVSEChargeParameterType(struct dinAC_EVSEChargeParameterType* dinAC_EVSEChargeParameterType) {
}
void init_dinAnonType_V2G_Message(struct dinAnonType_V2G_Message* dinAnonType_V2G_Message) {
}
void init_dinConsumptionCostType(struct dinConsumptionCostType* dinConsumptionCostType) {
dinConsumptionCostType->Cost.arrayLen = 0u;
}
void init_dinDC_EVSEStatusType(struct dinDC_EVSEStatusType* dinDC_EVSEStatusType) {
dinDC_EVSEStatusType->EVSEIsolationStatus_isUsed = 0u;
}
void init_dinWeldingDetectionResType(struct dinWeldingDetectionResType* dinWeldingDetectionResType) {
}
void init_dinSessionSetupReqType(struct dinSessionSetupReqType* dinSessionSetupReqType) {
}
void init_dinSessionSetupResType(struct dinSessionSetupResType* dinSessionSetupResType) {
dinSessionSetupResType->DateTimeNow_isUsed = 0u;
}
void init_dinServiceDetailResType(struct dinServiceDetailResType* dinServiceDetailResType) {
dinServiceDetailResType->ServiceParameterList_isUsed = 0u;
}
void init_dinSPKIDataType(struct dinSPKIDataType* dinSPKIDataType) {
dinSPKIDataType->SPKISexp.arrayLen = 0u;
}
void init_dinPowerDeliveryReqType(struct dinPowerDeliveryReqType* dinPowerDeliveryReqType) {
dinPowerDeliveryReqType->ChargingProfile_isUsed = 0u;
dinPowerDeliveryReqType->EVPowerDeliveryParameter_isUsed = 0u;
dinPowerDeliveryReqType->DC_EVPowerDeliveryParameter_isUsed = 0u;
}
void init_dinPreChargeResType(struct dinPreChargeResType* dinPreChargeResType) {
}
void init_dinCanonicalizationMethodType(struct dinCanonicalizationMethodType* dinCanonicalizationMethodType) {
}
void init_dinServiceChargeType(struct dinServiceChargeType* dinServiceChargeType) {
}
void init_dinEVChargeParameterType(struct dinEVChargeParameterType* dinEVChargeParameterType) {
}
void init_dinSAScheduleListType(struct dinSAScheduleListType* dinSAScheduleListType) {
dinSAScheduleListType->SAScheduleTuple.arrayLen = 0u;
}
void init_dinSASchedulesType(struct dinSASchedulesType* dinSASchedulesType) {
}
void init_dinPhysicalValueType(struct dinPhysicalValueType* dinPhysicalValueType) {
dinPhysicalValueType->Unit_isUsed = 0u;
}
void init_dinSAScheduleTupleType(struct dinSAScheduleTupleType* dinSAScheduleTupleType) {
dinSAScheduleTupleType->SalesTariff_isUsed = 0u;
}
void init_dinCertificateUpdateReqType(struct dinCertificateUpdateReqType* dinCertificateUpdateReqType) {
dinCertificateUpdateReqType->Id_isUsed = 0u;
}
void init_dinSignatureMethodType(struct dinSignatureMethodType* dinSignatureMethodType) {
dinSignatureMethodType->HMACOutputLength_isUsed = 0u;
}
void init_dinDigestMethodType(struct dinDigestMethodType* dinDigestMethodType) {
}
void init_dinKeyValueType(struct dinKeyValueType* dinKeyValueType) {
dinKeyValueType->DSAKeyValue_isUsed = 0u;
dinKeyValueType->RSAKeyValue_isUsed = 0u;
}
void init_dinContractAuthenticationReqType(struct dinContractAuthenticationReqType* dinContractAuthenticationReqType) {
dinContractAuthenticationReqType->Id_isUsed = 0u;
dinContractAuthenticationReqType->GenChallenge_isUsed = 0u;
}
void init_dinServiceDiscoveryReqType(struct dinServiceDiscoveryReqType* dinServiceDiscoveryReqType) {
dinServiceDiscoveryReqType->ServiceScope_isUsed = 0u;
dinServiceDiscoveryReqType->ServiceCategory_isUsed = 0u;
}
void init_dinServiceDetailReqType(struct dinServiceDetailReqType* dinServiceDetailReqType) {
}
void init_dinSignedInfoType(struct dinSignedInfoType* dinSignedInfoType) {
dinSignedInfoType->Id_isUsed = 0u;
dinSignedInfoType->Reference.arrayLen = 0u;
}
void init_dinMeteringReceiptReqType(struct dinMeteringReceiptReqType* dinMeteringReceiptReqType) {
dinMeteringReceiptReqType->Id_isUsed = 0u;
dinMeteringReceiptReqType->SAScheduleTupleID_isUsed = 0u;
}
void init_dinX509IssuerSerialType(struct dinX509IssuerSerialType* dinX509IssuerSerialType) {
}
void init_dinTransformsType(struct dinTransformsType* dinTransformsType) {
dinTransformsType->Transform.arrayLen = 0u;
}
void init_dinParameterType(struct dinParameterType* dinParameterType) {
dinParameterType->boolValue_isUsed = 0u;
dinParameterType->byteValue_isUsed = 0u;
dinParameterType->shortValue_isUsed = 0u;
dinParameterType->intValue_isUsed = 0u;
dinParameterType->physicalValue_isUsed = 0u;
dinParameterType->stringValue_isUsed = 0u;
}
void init_dinIntervalType(struct dinIntervalType* dinIntervalType) {
}
void init_dinRelativeTimeIntervalType(struct dinRelativeTimeIntervalType* dinRelativeTimeIntervalType) {
dinRelativeTimeIntervalType->duration_isUsed = 0u;
}
void init_dinKeyInfoType(struct dinKeyInfoType* dinKeyInfoType) {
dinKeyInfoType->Id_isUsed = 0u;
dinKeyInfoType->KeyName.arrayLen = 0u;
dinKeyInfoType->KeyValue.arrayLen = 0u;
dinKeyInfoType->RetrievalMethod.arrayLen = 0u;
dinKeyInfoType->X509Data.arrayLen = 0u;
dinKeyInfoType->PGPData.arrayLen = 0u;
dinKeyInfoType->SPKIData.arrayLen = 0u;
dinKeyInfoType->MgmtData.arrayLen = 0u;
}
void init_dinEntryType(struct dinEntryType* dinEntryType) {
dinEntryType->TimeInterval_isUsed = 0u;
dinEntryType->RelativeTimeInterval_isUsed = 0u;
}
void init_dinEVStatusType(struct dinEVStatusType* dinEVStatusType) {
}
void init_dinChargingStatusReqType(struct dinChargingStatusReqType* dinChargingStatusReqType) {
}
void init_dinChargeParameterDiscoveryResType(struct dinChargeParameterDiscoveryResType* dinChargeParameterDiscoveryResType) {
dinChargeParameterDiscoveryResType->SASchedules_isUsed = 0u;
dinChargeParameterDiscoveryResType->SAScheduleList_isUsed = 0u;
dinChargeParameterDiscoveryResType->EVSEChargeParameter_isUsed = 0u;
dinChargeParameterDiscoveryResType->AC_EVSEChargeParameter_isUsed = 0u;
dinChargeParameterDiscoveryResType->DC_EVSEChargeParameter_isUsed = 0u;
}
void init_dinPMaxScheduleType(struct dinPMaxScheduleType* dinPMaxScheduleType) {
dinPMaxScheduleType->PMaxScheduleEntry.arrayLen = 0u;
}
void init_dinDC_EVSEChargeParameterType(struct dinDC_EVSEChargeParameterType* dinDC_EVSEChargeParameterType) {
dinDC_EVSEChargeParameterType->EVSEMaximumPowerLimit_isUsed = 0u;
dinDC_EVSEChargeParameterType->EVSECurrentRegulationTolerance_isUsed = 0u;
dinDC_EVSEChargeParameterType->EVSEEnergyToBeDelivered_isUsed = 0u;
}
void init_dinCableCheckResType(struct dinCableCheckResType* dinCableCheckResType) {
}
void init_dinTransformType(struct dinTransformType* dinTransformType) {
dinTransformType->XPath.arrayLen = 0u;
}
void init_dinParameterSetType(struct dinParameterSetType* dinParameterSetType) {
dinParameterSetType->Parameter.arrayLen = 0u;
}
void init_dinSubCertificatesType(struct dinSubCertificatesType* dinSubCertificatesType) {
dinSubCertificatesType->Certificate.arrayLen = 0u;
}
void init_dinDC_EVPowerDeliveryParameterType(struct dinDC_EVPowerDeliveryParameterType* dinDC_EVPowerDeliveryParameterType) {
dinDC_EVPowerDeliveryParameterType->BulkChargingComplete_isUsed = 0u;
}
void init_dinPaymentDetailsReqType(struct dinPaymentDetailsReqType* dinPaymentDetailsReqType) {
}
void init_dinDC_EVChargeParameterType(struct dinDC_EVChargeParameterType* dinDC_EVChargeParameterType) {
dinDC_EVChargeParameterType->EVMaximumPowerLimit_isUsed = 0u;
dinDC_EVChargeParameterType->EVEnergyCapacity_isUsed = 0u;
dinDC_EVChargeParameterType->EVEnergyRequest_isUsed = 0u;
dinDC_EVChargeParameterType->FullSOC_isUsed = 0u;
dinDC_EVChargeParameterType->BulkSOC_isUsed = 0u;
}
void init_dinSelectedServiceListType(struct dinSelectedServiceListType* dinSelectedServiceListType) {
dinSelectedServiceListType->SelectedService.arrayLen = 0u;
}
void init_dinServiceDiscoveryResType(struct dinServiceDiscoveryResType* dinServiceDiscoveryResType) {
dinServiceDiscoveryResType->ServiceList_isUsed = 0u;
}
void init_dinPaymentDetailsResType(struct dinPaymentDetailsResType* dinPaymentDetailsResType) {
}
void init_dinServiceType(struct dinServiceType* dinServiceType) {
}
void init_dinEVPowerDeliveryParameterType(struct dinEVPowerDeliveryParameterType* dinEVPowerDeliveryParameterType) {
}
void init_dinBodyBaseType(struct dinBodyBaseType* dinBodyBaseType) {
}
void init_dinCurrentDemandReqType(struct dinCurrentDemandReqType* dinCurrentDemandReqType) {
dinCurrentDemandReqType->EVMaximumVoltageLimit_isUsed = 0u;
dinCurrentDemandReqType->EVMaximumCurrentLimit_isUsed = 0u;
dinCurrentDemandReqType->EVMaximumPowerLimit_isUsed = 0u;
dinCurrentDemandReqType->BulkChargingComplete_isUsed = 0u;
dinCurrentDemandReqType->RemainingTimeToFullSoC_isUsed = 0u;
dinCurrentDemandReqType->RemainingTimeToBulkSoC_isUsed = 0u;
}
void init_dinMeteringReceiptResType(struct dinMeteringReceiptResType* dinMeteringReceiptResType) {
}
void init_dinPaymentOptionsType(struct dinPaymentOptionsType* dinPaymentOptionsType) {
dinPaymentOptionsType->PaymentOption.arrayLen = 0u;
}
void init_dinMessageHeaderType(struct dinMessageHeaderType* dinMessageHeaderType) {
dinMessageHeaderType->Notification_isUsed = 0u;
dinMessageHeaderType->Signature_isUsed = 0u;
}
void init_dinAC_EVSEStatusType(struct dinAC_EVSEStatusType* dinAC_EVSEStatusType) {
}
void init_dinSalesTariffType(struct dinSalesTariffType* dinSalesTariffType) {
dinSalesTariffType->SalesTariffDescription_isUsed = 0u;
dinSalesTariffType->SalesTariffEntry.arrayLen = 0u;
}
void init_dinChargeParameterDiscoveryReqType(struct dinChargeParameterDiscoveryReqType* dinChargeParameterDiscoveryReqType) {
dinChargeParameterDiscoveryReqType->EVChargeParameter_isUsed = 0u;
dinChargeParameterDiscoveryReqType->AC_EVChargeParameter_isUsed = 0u;
dinChargeParameterDiscoveryReqType->DC_EVChargeParameter_isUsed = 0u;
}
void init_dinServicePaymentSelectionResType(struct dinServicePaymentSelectionResType* dinServicePaymentSelectionResType) {
}
void init_dinEVSEStatusType(struct dinEVSEStatusType* dinEVSEStatusType) {
}
void init_dinManifestType(struct dinManifestType* dinManifestType) {
dinManifestType->Id_isUsed = 0u;
dinManifestType->Reference.arrayLen = 0u;
}
void init_dinListOfRootCertificateIDsType(struct dinListOfRootCertificateIDsType* dinListOfRootCertificateIDsType) {
dinListOfRootCertificateIDsType->RootCertificateID.arrayLen = 0u;
}
void init_dinServiceTagListType(struct dinServiceTagListType* dinServiceTagListType) {
dinServiceTagListType->Service.arrayLen = 0u;
}
void init_dinRSAKeyValueType(struct dinRSAKeyValueType* dinRSAKeyValueType) {
}
void init_dinEVSEChargeParameterType(struct dinEVSEChargeParameterType* dinEVSEChargeParameterType) {
}
void init_dinSignaturePropertiesType(struct dinSignaturePropertiesType* dinSignaturePropertiesType) {
dinSignaturePropertiesType->Id_isUsed = 0u;
dinSignaturePropertiesType->SignatureProperty.arrayLen = 0u;
}
void init_dinDSAKeyValueType(struct dinDSAKeyValueType* dinDSAKeyValueType) {
dinDSAKeyValueType->P_isUsed = 0u;
dinDSAKeyValueType->Q_isUsed = 0u;
dinDSAKeyValueType->G_isUsed = 0u;
dinDSAKeyValueType->J_isUsed = 0u;
dinDSAKeyValueType->Seed_isUsed = 0u;
dinDSAKeyValueType->PgenCounter_isUsed = 0u;
}
void init_dinProfileEntryType(struct dinProfileEntryType* dinProfileEntryType) {
}
void init_dinSignatureValueType(struct dinSignatureValueType* dinSignatureValueType) {
dinSignatureValueType->Id_isUsed = 0u;
}
void init_dinSessionStopResType(struct dinSessionStopResType* dinSessionStopResType) {
}
void init_dinMeterInfoType(struct dinMeterInfoType* dinMeterInfoType) {
dinMeterInfoType->MeterReading_isUsed = 0u;
dinMeterInfoType->SigMeterReading_isUsed = 0u;
dinMeterInfoType->MeterStatus_isUsed = 0u;
dinMeterInfoType->TMeter_isUsed = 0u;
}
void init_dinSalesTariffEntryType(struct dinSalesTariffEntryType* dinSalesTariffEntryType) {
dinSalesTariffEntryType->TimeInterval_isUsed = 0u;
dinSalesTariffEntryType->RelativeTimeInterval_isUsed = 0u;
dinSalesTariffEntryType->ConsumptionCost.arrayLen = 0u;
}
void init_dinSessionStopType(struct dinSessionStopType* dinSessionStopType) {
}
void init_dinSignaturePropertyType(struct dinSignaturePropertyType* dinSignaturePropertyType) {
dinSignaturePropertyType->Id_isUsed = 0u;
}
void init_dinSignatureType(struct dinSignatureType* dinSignatureType) {
dinSignatureType->Id_isUsed = 0u;
dinSignatureType->KeyInfo_isUsed = 0u;
dinSignatureType->Object.arrayLen = 0u;
}
#endif /* DEPLOY_DIN_CODEC */
#endif

2181
src/din/dinEXIDatatypes.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

@ -0,0 +1,62 @@
/*
* Copyright (C) 2007-2014 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 0.9.1
* @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_din_DATATYPES_DECODER_H
#define EXI_din_DATATYPES_DECODER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "dinEXIDatatypes.h"
#if DEPLOY_DIN_CODEC == SUPPORT_YES
#include <stdint.h>
#include "EXITypes.h"
int decode_dinExiDocument(bitstream_t* stream, struct dinEXIDocument* exiDoc);
#endif /* DEPLOY_DIN_CODEC */
#ifdef __cplusplus
}
#endif
#endif

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,63 @@
/*
* Copyright (C) 2007-2014 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 0.9.1
* @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_din_DATATYPES_ENCODER_H
#define EXI_din_DATATYPES_ENCODER_H
#ifdef __cplusplus
extern "C" {
#endif
#include "dinEXIDatatypes.h"
#if DEPLOY_DIN_CODEC == SUPPORT_YES
#include <stdint.h>
#include "EXITypes.h"
int encode_dinExiDocument(bitstream_t* stream, struct dinEXIDocument* exiDoc);
#endif /* DEPLOY_DIN_CODEC */
#ifdef __cplusplus
}
#endif
#endif

View file

@ -19,7 +19,7 @@
*
* @author Daniel.Peintner.EXT@siemens.com
* @author Sebastian.Kaebisch@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Switch for sample programs: EXI codec only or for entire V2G example</p>

View file

@ -19,7 +19,7 @@
*
* @author Daniel.Peintner.EXT@siemens.com
* @author Sebastian.Kaebisch@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
*

View file

@ -18,7 +18,7 @@
/*******************************************************************
*
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
* <p>Code generated by EXIdizer</p>
@ -69,7 +69,7 @@ int main_databinder(int argc, char *argv[]) {
struct v2gEXIDocument exiDoc;
int errn = 0;
bitstream_t iStream, oStream;
bitstream_t iStream, oStream;
#if EXI_STREAM == BYTE_ARRAY
uint16_t posDecode;

View file

@ -19,7 +19,7 @@
*
* @author Daniel.Peintner.EXT@siemens.com
* @author Sebastian.Kaebisch@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
*
@ -147,9 +147,8 @@ static int deserializeStream2EXI(bitstream_t* streamIn, struct v2gEXIDocument* e
return errn;
}
/** Example implementation of the app handshake protocol for the EVSE side */
static int appHandshakeHandler(bitstream_t iStream, bitstream_t oStream) {
static int appHandshakeHandler(bitstream_t* iStream, bitstream_t* oStream) {
struct appHandEXIDocument appHandResp;
int i;
struct appHandEXIDocument exiDoc;
@ -157,9 +156,9 @@ static int appHandshakeHandler(bitstream_t iStream, bitstream_t oStream) {
uint16_t payloadLengthDec;
if ( (errn = read_v2gtpHeader(iStream.data, &payloadLengthDec)) == 0) {
*iStream.pos = V2GTP_HEADER_LENGTH;
if( (errn = decode_appHandExiDocument(&iStream, &exiDoc)) ) {
if ( (errn = read_v2gtpHeader(iStream->data, &payloadLengthDec)) == 0) {
*iStream->pos = V2GTP_HEADER_LENGTH;
if( (errn = decode_appHandExiDocument(iStream, &exiDoc)) ) {
/* an error occured */
return errn;
}
@ -188,9 +187,9 @@ static int appHandshakeHandler(bitstream_t iStream, bitstream_t oStream) {
appHandResp.supportedAppProtocolRes.SchemaID = exiDoc.supportedAppProtocolReq.AppProtocol.array[0].SchemaID; /* signal the protocol by the provided schema id*/
appHandResp.supportedAppProtocolRes.SchemaID_isUsed = 1u;
*oStream.pos = V2GTP_HEADER_LENGTH;
if( (errn = encode_appHandExiDocument(&oStream, &appHandResp)) == 0) {
errn = write_v2gtpHeader(oStream.data, (*oStream.pos)-V2GTP_HEADER_LENGTH, V2GTP_EXI_TYPE);
*oStream->pos = V2GTP_HEADER_LENGTH;
if( (errn = encode_appHandExiDocument(oStream, &appHandResp)) == 0) {
errn = write_v2gtpHeader(oStream->data, (*oStream->pos)-V2GTP_HEADER_LENGTH, V2GTP_EXI_TYPE);
}
@ -205,7 +204,7 @@ static int appHandshake()
uint16_t payloadLengthDec;
uint16_t pos1 = V2GTP_HEADER_LENGTH; /* v2gtp header */
uint16_t pos2;
uint16_t pos2 = 0;
struct appHandEXIDocument handshake;
struct appHandEXIDocument handshakeResp;
@ -254,7 +253,7 @@ static int appHandshake()
if (errn == 0) {
/* read app handshake request & generate response */
errn = appHandshakeHandler(stream1, stream2);
errn = appHandshakeHandler(&stream1, &stream2);
}
if (errn == 0) {

View file

@ -20,7 +20,7 @@
*
* @author Sebastian.Kaebisch@siemens.com
* @author Daniel.Peintner.EXT@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
********************************************************************/
@ -57,8 +57,8 @@ int write_v2gtpHeader(uint8_t* outStream, uint16_t outStreamLength, uint16_t pay
/* write payload length */
outStream[7] = (uint8_t)(outStreamLength & 0xFF);
outStream[6] = (uint8_t)(outStreamLength>>8 & 0xFF);
outStream[5] = (uint8_t)(outStreamLength>>16 & 0xFF);
outStream[4] = (uint8_t)(outStreamLength>>24 & 0xFF);
outStream[5] = (uint8_t) 0; /* uint16 only, no need for (outStreamLength>>16 & 0xFF); */
outStream[4] = (uint8_t) 0; /* uint16 only, no need for (outStreamLength>>24 & 0xFF); */
/* here, the outStream length have to be resized by the v2gtp offset*/
/**outStreamLength += V2GTP_HEADER_LENGTH;*/

View file

@ -19,7 +19,7 @@
/*******************************************************************
*
* @author Sebastian.Kaebisch@siemens.com
* @version 0.9
* @version 0.9.1
* @contact Joerg.Heuer@siemens.com
*
********************************************************************/